lib/et-orbi/make.rb in et-orbi-1.2.3 vs lib/et-orbi/make.rb in et-orbi-1.2.4
- old
+ new
@@ -103,13 +103,12 @@
zone)
end
def make_from_array(a, zone)
- t = Time.utc(*a)
- s = t.strftime("%Y-%m-%d %H:%M:%S.#{'%06d' % t.usec}")
-
- make_from_string(s, zone)
+ parse(
+ Time.utc(*a).strftime('%Y-%m-%d %H:%M:%S.%6N'), # not a Chronic string
+ zone: zone, enable_chronic: false)
end
def make_from_string(s, zone)
parse(s, zone: zone)