Module Name: src Committed By: snj Date: Sat Oct 11 16:56:21 UTC 2014
Modified Files: src/lib/libutil [netbsd-7]: parsedate.y Log Message: Pull up following revision(s) (requested by apb in ticket #135): lib/libutil/parsedate.y: revision 1.20 Improved handling of local times. * A magic value USE_LOCAL_TIME (defined as 99999) may be passed as the Timezone to Convert(), instructing it to use mktime() to work in the local time zone, instead of using mktime_z to work in UTC (and then adding the specified timezone offset). * Some old code is removed now that there's no need to find the local timezone offset. * Allow either one or both of the now and zone arguments to parsedate() to be NULL, treating them independently. Previously, if either one was NULL, the other was ignored. * If the zone argument is specified, then the current date is calculated in the specified zone, not in local time. Also add some disabled debug code. This should fix PR lib/47916. To generate a diff of this commit: cvs rdiff -u -r1.16.6.3 -r1.16.6.4 src/lib/libutil/parsedate.y Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.