Permalink
Browse files

Explicitly call function date_default_timezone_set() to set the syste…

…m default timezone to avoid the warning at using strtotime()
  • Loading branch information...
1 parent 4eee38d commit 8f3f7f3c5845d0dc547dcf6426d657e1e46f2062 Cindy Li committed May 2, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 include/vitals.inc.php
View
@@ -3,6 +3,9 @@
define('FLUID_IG_DEVEL', 1);
+// set the default timezone to avoid the warning of "cannot rely on system timezone"
+date_default_timezone_set('America/New_York');
+
// get the protocol
if (isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on')) {
$server_protocol = 'https://';

0 comments on commit 8f3f7f3

Please sign in to comment.