[opw-web] Provide a DateTime to 'new DateTime'



commit cd358827916838368d53f4d37c10afbf61bfd39e
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Sat Mar 8 10:03:25 2014 -0500

    Provide a DateTime to 'new DateTime'

 auth/Hybrid/Logger.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/auth/Hybrid/Logger.php b/auth/Hybrid/Logger.php
index 224cebc..b519169 100644
--- a/auth/Hybrid/Logger.php
+++ b/auth/Hybrid/Logger.php
@@ -27,7 +27,7 @@ class Hybrid_Logger
        public static function debug( $message, $object = NULL )
        {
                if( Hybrid_Auth::$config["debug_mode"] ){
-                       $datetime = new DateTime();
+                       $datetime = new DateTime("UTC");
                        $datetime =  $datetime->format(DATE_ATOM);
 
                        file_put_contents( 
@@ -41,7 +41,7 @@ class Hybrid_Logger
        public static function info( $message )
        { 
                if( Hybrid_Auth::$config["debug_mode"] ){
-                       $datetime = new DateTime();
+                       $datetime = new DateTime("UTC");
                        $datetime =  $datetime->format(DATE_ATOM);
 
                        file_put_contents( 
@@ -55,7 +55,7 @@ class Hybrid_Logger
        public static function error($message, $object = NULL)
        { 
                if( Hybrid_Auth::$config["debug_mode"] ){
-                       $datetime = new DateTime();
+                       $datetime = new DateTime("UTC");
                        $datetime =  $datetime->format(DATE_ATOM);
 
                        file_put_contents( 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]