Skip to content
This repository
Browse code

use DateTime's iso8601 helpers instead of '%Q' formatter in order to …

…avoid limitations with the unix epoch
  • Loading branch information...
commit cd44704d1af192848559e71f9d8c259fb1f31626 1 parent 732d946
Ryan Biesemeyer authored August 13, 2012

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  lib/delorean.rb
3  lib/delorean.rb
@@ -25,8 +25,7 @@ class << DateTime
25 25
     alias_method :now_without_delorean, :now
26 26
 
27 27
     def now(sg=Date::ITALY)
28  
-      format = '%Q'
29  
-      self.strptime( Time.now.to_datetime.strftime(format), format, sg )
  28
+      self.iso8601( Time.now.to_datetime.iso8601, sg )
30 29
     end
31 30
   end
32 31
 end

0 notes on commit cd44704

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