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
b4c5ed1a
Commit
b4c5ed1a
authored
Feb 17, 2015
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1112181: Relative dates in the future involving months are incorrectly converted
r=dylan a=glob
parent
4dc920c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Search.pm
Bugzilla/Search.pm
+3
-2
No files found.
Bugzilla/Search.pm
View file @
b4c5ed1a
...
...
@@ -34,7 +34,7 @@ use Date::Format;
use
Date::
Parse
;
use
Scalar::
Util
qw(blessed)
;
use
List::
MoreUtils
qw(all firstidx part uniq)
;
use
POSIX
qw(INT_MAX)
;
use
POSIX
qw(INT_MAX
floor
)
;
use
Storable
qw(dclone)
;
use
Time::
HiRes
qw(gettimeofday tv_interval)
;
...
...
@@ -2241,7 +2241,8 @@ sub SqlifyDate {
}
elsif
(
$unit
eq
'm'
)
{
$month
-=
$amount
;
while
(
$month
<
0
)
{
$year
--
;
$month
+=
12
;
}
$year
+=
floor
(
$month
/
12
);
$month
%=
12
;
if
(
$startof
)
{
return
sprintf
(
"%4d-%02d-01 00:00:00"
,
$year
+
1900
,
$month
+
1
);
}
...
...
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