Skip to content

Commit d51ea4f

Browse files
committedMar 30, 2020
Set UTC for heartbeat check
#1720
1 parent 8572c2b commit d51ea4f

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)