Commit ee78f645 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 491630: Make sure DateTime never gets fractional "seconds" in new()

Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent 34e54028
......@@ -444,7 +444,8 @@ sub format_time {
day => $time[3],
hour => $time[2],
minute => $time[1],
second => $time[0],
# DateTime doesn't like fractional seconds.
second => int($time[0]),
# If importing, use the specified timezone, otherwise
# use the timezone specified by the server.
time_zone => Bugzilla->local_timezone->offset_as_string($time[6])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment