-- tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1323
a5681a0c-68f1-0310-ab6d-
d61299d08faa
ptv->type = ABSOLUTE_TIME;
ptv->offset = 0;
ptv->tm = *localtime(&now);
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) {
token();
switch (sc_tokid) {
panic(e("unparsable trailing text: '...%s%s'", sc_token, sct));
}
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 */
if (ptv->type == ABSOLUTE_TIME)
if (mktime(&ptv->tm) == -1) { /* normalize & check */
/* can happen for "nonexistent" times, e.g. around 3am */