Return to entries.c CVS log | Up to [local] / src / usr.bin / cvs |
version 1.75, 2007/02/22 06:42:09 | version 1.76, 2007/05/16 20:51:22 | ||
---|---|---|---|
|
|
||
else { | else { | ||
if (strptime(fields[3], "%a %b %d %T %Y", &t) == NULL) | if (strptime(fields[3], "%a %b %d %T %Y", &t) == NULL) | ||
fatal("'%s' is not a valid date", fields[3]); | fatal("'%s' is not a valid date", fields[3]); | ||
t.tm_isdst = 0; | |||
t.tm_isdst = -1; /* Figure out DST. */ | |||
t.tm_gmtoff = 0; | t.tm_gmtoff = 0; | ||
ent->ce_mtime = mktime(&t); | ent->ce_mtime = mktime(&t); | ||
ent->ce_mtime += t.tm_gmtoff; | ent->ce_mtime += t.tm_gmtoff; |