|
From: | Mike Miller |
Subject: | [Octave-bug-tracker] [bug #36954] datenum / datevec convert date-time string incorrectly during hour lost to DST |
Date: | Wed, 23 Aug 2017 13:29:43 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Update of bug #36954 (project octave): Status: In Progress => Patch Submitted _______________________________________________________ Follow-up Comment #24: Please try the attached patch with a test case that works for you in your time zone. Also please make sure that time functions work normally and return the correct current local time after testing this in the same instance of Octave. This change sets TZ=UTC0 for the block where strptime is used to convert a string into a struct tm. This ensures that no local time zone information is factored in to the conversion at all. It then tries to restore TZ by either unsetting it or setting it back if it had a value. The only missing part here is that I am not sure if there is a way to tell whether an environment variable is missing or is set to an empty string in the m-file language, which is an important distinction here. (file #41626) _______________________________________________________ Additional Item Attachment: File name: datevec.patch Size:2 KB _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?36954> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |