octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55437] Files in editor are reported as modifi


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #55437] Files in editor are reported as modified while heavily parsing date strings with datenum()
Date: Fri, 11 Jan 2019 23:46:47 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Follow-up Comment #3, bug #55437 (project octave):

Makes sense that the temporary TZ change would cause this. I can't reproduce
on macOS, but I think that's because macOS does its file change notifications
differently, subscribing to a system service that pushes filesystem change
notification events.

Maybe there's a way to do the "zone-independent" date parsing locally instead
of fiddling with the global TZ environment variable: Check the date format
string, and if it doesn't include an explicit `%z` or `%Z`, then concatenate '
%Z' to the format string and ' GMT' to the input date strings, so the
strptime() parsing logic doesn't have to refer to TZ at all.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55437>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]