diff options
author | mkanat%bugzilla.org <> | 2009-06-02 05:47:22 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-06-02 05:47:22 +0200 |
commit | ee78f645f28436d5684d2ad252a637d8de68c6b7 (patch) | |
tree | 4a174d3bc7014ea74e6745b536f2182c45ee5bf2 /Bugzilla | |
parent | 34e54028237fed966388a7d3b4f7e7321a92a2e4 (diff) | |
download | bugzilla-ee78f645f28436d5684d2ad252a637d8de68c6b7.tar.gz bugzilla-ee78f645f28436d5684d2ad252a637d8de68c6b7.tar.xz |
Bug 491630: Make sure DateTime never gets fractional "seconds" in new()
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Util.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index a725a8e21..b3d5b0eaa 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -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]) |