Skip to content

Commit eef136e

Browse files
committed
set the default date in the main class script so other tasks that
require date() don't break.
1 parent cfcede5 commit eef136e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/Pomander.php

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ public static function resolve_runfile($directory)
2020
}
2121
}
2222

23+
// set default date
24+
if(function_exists('date_default_timezone_set')) date_default_timezone_set('UTC');
25+
2326
set_error_handler(function($errno,$errstr,$errfile,$errline) {
2427
puts("aborted!");
2528
puts("$errstr\n");

lib/Pomander/Environment.php

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public function __set($prop,$value) { $this->config[$prop] = $value; }
7070

7171
public function new_release()
7272
{
73-
if(function_exists('date_default_timezone_set')) date_default_timezone_set('UTC');
7473
return date('Ymdhis');
7574
}
7675

0 commit comments

Comments
 (0)