projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a52e86
)
set the time on changelogs to noon UTC
author
ewt
<devnull@localhost>
Thu, 30 Jan 1997 20:09:42 +0000
(20:09 +0000)
committer
ewt
<devnull@localhost>
Thu, 30 Jan 1997 20:09:42 +0000
(20:09 +0000)
CVS patchset: 1389
CVS date: 1997/01/30 20:09:42
build/spec.c
patch
|
blob
|
history
diff --git
a/build/spec.c
b/build/spec.c
index
e3f1d23
..
6fc81a4
100644
(file)
--- a/
build/spec.c
+++ b/
build/spec.c
@@
-549,6
+549,9
@@
static int dateToTimet(const char * datestr, time_t * secs)
/* day */
if ((chptr = strtok(NULL, " \t\n")) == NULL) return -1;
+ /* make this noon so the day is always right (as we make this UTC) */
+ time.tm_hour = 12;
+
time.tm_mday = strtol(chptr, &chptr, 10);
if (*chptr) return -1;
if (time.tm_mday < 0 || time.tm_mday > lengths[time.tm_mon]) return -1;