Skip to content

Commit af06f58

Browse files
author
Gis70
authored
Merge pull request #1723 from NextDom/feature/HeartbeatUTC
Set UTC for heartbeat check
2 parents cf90558 + d51ea4f commit af06f58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Managers/PluginManager.php

+2
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ public static function orderPlugin(Plugin $firstPlugin, Plugin $secondPluginName
234234
*/
235235
public static function heartbeat()
236236
{
237+
// set the default timezone to UTC
238+
date_default_timezone_set('UTC');
237239
foreach (self::listPlugin(true) as $plugin) {
238240
try {
239241
$heartbeat = ConfigManager::byKey('heartbeat::delay::' . $plugin->getId(), 'core', 0);

0 commit comments

Comments
 (0)