Commit 1547a5f1 authored by Eric - kg6wxc's avatar Eric - kg6wxc
Browse files

Update scripts/wxc_functions.inc

parent bad29d38
......@@ -492,9 +492,9 @@ function wxc_scriptGetLastDateTime ($id, $name) {
}
//timezone fixes - wxc 11-27-2018
$datetime = new DateTime($lastRunSelf['script_last_run']);
$dtz = new DateTimeZone($GLOBALS['USER_SETTINGS']['localTimeZone']);
date_timezone_set($datetime, $dtz);
$datetime = new DateTime($lastRunSelf['script_last_run'], $GLOBALS['localTimeZone]);
//$dtz = new DateTimeZone($GLOBALS['USER_SETTINGS']['localTimeZone']);
//date_timezone_set($datetime, $dtz);
return $datetime;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment