Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
ee78f645
Commit
ee78f645
authored
Jun 02, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Util.pm
Bugzilla/Util.pm
+2
-1
No files found.
Bugzilla/Util.pm
View file @
ee78f645
...
...
@@ -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
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment