projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85a3961
)
add the comment to go with last change
author
Jim Meyering
<jim@meyering.net>
Thu, 20 May 1999 03:49:25 +0000
(
03:49
+0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 20 May 1999 03:49:25 +0000
(
03:49
+0000)
lib/getdate.y
patch
|
blob
|
history
diff --git
a/lib/getdate.y
b/lib/getdate.y
index bfaf2f1c1f5b016285be25c522e905560c2d8199..9dc10483de2f57df1838c5ff6c9b37a737af11e4 100644
(file)
--- a/
lib/getdate.y
+++ b/
lib/getdate.y
@@
-953,8
+953,12
@@
get_date (const char *p, const time_t *now)
tm.tm_hour += yyRelHour;
tm.tm_min += yyRelMinutes;
tm.tm_sec += yyRelSeconds;
+
+ /* Let mktime deduce tm_isdst if we have an absolute timestamp,
+ or if the relative timestamp mentions days, months, or years. */
if (yyHaveDate | yyHaveDay | yyHaveTime | yyRelDay | yyRelMonth | yyRelYear)
tm.tm_isdst = -1;
+
tm0 = tm;
Start = mktime (&tm);