summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b8bba43)
raw | patch | inline | side by side (parent: b8bba43)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 12 Apr 2008 09:21:31 +0000 (09:21 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 12 Apr 2008 09:21:31 +0000 (09:21 +0000) |
program/src/parsetime.c | patch | blob | history |
index 4c0f089bac9bfdc9e21ac88a1780c1a7d03f67d9..8818f1cbe2cb8732d6476f6040bd9c41bbb3cd7d 100644 (file)
--- a/program/src/parsetime.c
+++ b/program/src/parsetime.c
ptv->type = ABSOLUTE_TIME;
ptv->offset = 0;
ptv->tm = *localtime(&now);
- ptv->tm. tm_isdst = -1; /* mk time can figure this out for us ... */
+ ptv->tm. tm_isdst = -1; /* mk time can figure dst by default ... */
token();
switch (sc_tokid) {
panic(e("unparsable trailing text: '...%s%s'", sc_token, sct));
}
- ptv->tm. tm_isdst = -1; /* for mktime to guess DST status */
-
if (ptv->type == ABSOLUTE_TIME)
if (mktime(&ptv->tm) == -1) { /* normalize & check */
/* can happen for "nonexistent" times, e.g. around 3am */