mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 10:46:43 +02:00
fix: use UTC_TIMESTAMP() to get current utc date instead of NOW() in sql queries
This commit is contained in:
parent
2306df1c98
commit
4e22a0d5e4
20 changed files with 40 additions and 40 deletions
|
|
@ -287,11 +287,11 @@ class PodcastController extends BaseController
|
|||
if ($this->podcast->type === 'serial') {
|
||||
// podcast is serial
|
||||
$episodes = model(EpisodeModel::class)
|
||||
->where('`published_at` <= NOW()', null, false)
|
||||
->where('`published_at` <= UTC_TIMESTAMP()', null, false)
|
||||
->orderBy('season_number DESC, number ASC');
|
||||
} else {
|
||||
$episodes = model(EpisodeModel::class)
|
||||
->where('`published_at` <= NOW()', null, false)
|
||||
->where('`published_at` <= UTC_TIMESTAMP()', null, false)
|
||||
->orderBy('published_at', 'DESC');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue