You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your bug report and for your investigation @sphoto
I was not aware of this behaviour on Windows. After closer inspection we only need to store the amount of (milli)seconds since the 1970 epoch in stead of a complete time_struct, so there is no need to call time.localtime(-1) either. I implemented a fix and the modified code is available in the issue17 branch.
I have seen another potential problem though, according to https://docs.python.org/3/library/time.html#time.time the epoch is not necessarily January 1, 1970, 00:00:00 (UTC) on all systems, while it should be for the PBF file specification. On Windows and most Unix systems it should work as expected. I'll have a look on which systems there is a different epoch and if it needs fixing before merging to the main branch.
In practice, the epoch is always assumed to be January 1, 1970, 00:00:00 (UTC). See this python dev-thread.
The fix has been merged into the main branch.
Please see: https://stackoverflow.com/questions/16387787/odd-behaviour-of-ephems-python-package-localtime-function
The text was updated successfully, but these errors were encountered: