Permalink
Browse files

fix formating issue with nano-seconds

  • Loading branch information...
mkristian committed Apr 24, 2013
1 parent 13a3cfe commit 6a6aee36952696c578dc05c3547ac4cc24bf2492
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ixtlan/babel/factory.rb
@@ -30,7 +30,7 @@ class Factory
end
DATE_TIME_TO_S = Proc.new do |dt|
- dt.strftime('%Y-%m-%dT%H:%M:%S.') + ("%06d" % (dt.sec_fraction * NANOSECONDS_IN_DAY ) ) + dt.strftime('%z')
+ dt.strftime('%Y-%m-%dT%H:%M:%S.') + ("%06d" % (dt.sec_fraction * NANOSECONDS_IN_DAY ) )[0..6] + dt.strftime('%z')
end
DEFAULT_MAP = {

0 comments on commit 6a6aee3

Please sign in to comment.