Module Name: src Committed By: dholland Date: Thu Dec 31 10:52:06 UTC 2015
Modified Files: src/lib/libutil: parsedate.y Log Message: When computing relative months, use mktime() directly and don't call our Convert(). And check it for failure. This fixes three sets of problems: (1) depending on the passed-in value of Timezone it might disassemble the time in one timezone and reassemble it in another, causing mysterious offsets of a few hours; (2) with the previous set of changes to this file, Convert() fails if it ends up normalizing a date, so e.g. going three months forward from March 31 would fail; (3) previously if Convert() failed we passed -1 on to DSTcorrect(), which made a mess. PR 50574. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/lib/libutil/parsedate.y Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.