mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 15:26: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
|
|
@ -34,7 +34,7 @@ class WebSubController extends Controller
|
|||
->where('podcasts.is_published_on_hubs', false)
|
||||
->orGroupStart()
|
||||
->where('episodes.is_published_on_hubs', false)
|
||||
->where('`' . $podcastModel->db->getPrefix() . 'episodes`.`published_at` <= NOW()', null, false)
|
||||
->where('`' . $podcastModel->db->getPrefix() . 'episodes`.`published_at` <= UTC_TIMESTAMP()', null, false)
|
||||
->groupEnd()
|
||||
->findAll();
|
||||
|
||||
|
|
@ -82,7 +82,7 @@ class WebSubController extends Controller
|
|||
'podcast_id' => $podcast->id,
|
||||
'is_published_on_hubs' => false,
|
||||
])
|
||||
->where('`published_at` <= NOW()', null, false)
|
||||
->where('`published_at` <= UTC_TIMESTAMP()', null, false)
|
||||
->update();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue