Skip to content
This repository
Browse code

Put logged timestamps into the current timezone

  • Loading branch information...
commit d42e689bea7975a8b90589bd3b55b1e47bf114bc 1 parent 1946155
Rob Hoelz authored February 04, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  lib/SaharaSync/Util.pm
3  lib/SaharaSync/Util.pm
@@ -87,7 +87,8 @@ sub load_logger {
87 87
     $logger->add_callback(sub {
88 88
         my %params = @_;
89 89
 
90  
-        my $timestamp = $formatter->format_datetime(DateTime->now);
  90
+        my $timestamp = $formatter->format_datetime(
  91
+            DateTime->now->set_time_zone('local'));
91 92
 
92 93
         return "[$timestamp] $params{'message'}";
93 94
     });

0 notes on commit d42e689

Please sign in to comment.
Something went wrong with that request. Please try again.