Closed florisvb closed 11 years ago
Did you ever get further with this? I'm tempted to call it a bug with pytz and out-of-scope for flydra.
I just "fixed" it by using 'US/Pacific' and moved on. Yes, it is a bug with pytz.
I'm actually still having some problems with this. I've set the timezone to 'US/Pacific' using 'dpkg-reconfigure tzdata' but pytz still reads the timezone as PST. Am I setting the timezone in the wrong place?
Paolo
On 06/03/2013 01:20 PM, Floris van Breugel wrote:
I just "fixed" it by using 'US/Pacific' and moved on. Yes, it is a bug with pytz.
— Reply to this email directly or view it on GitHub https://github.com/strawlab/flydra/issues/16#issuecomment-18868258.
I'm pretty sure the only change I made was to add this line to result_utils.py:
DEFAULT_TZ = 'US/Pacific'
right after import pytz
On Tue, Jun 4, 2013 at 4:32 PM, fieldbio notifications@github.com wrote:
I'm actually still having some problems with this. I've set the timezone to 'US/Pacific' using 'dpkg-reconfigure tzdata' but pytz still reads the timezone as PST. Am I setting the timezone in the wrong place?
Paolo
On 06/03/2013 01:20 PM, Floris van Breugel wrote:
I just "fixed" it by using 'US/Pacific' and moved on. Yes, it is a bug with pytz.
— Reply to this email directly or view it on GitHub https://github.com/strawlab/flydra/issues/16#issuecomment-18868258.
— Reply to this email directly or view it on GitHubhttps://github.com/strawlab/flydra/issues/16#issuecomment-18946469 .
Floris van Breugel PhD Candidate at Caltech Control and Dynamical Systems (925) 963 8280
Wildlife and Landscape Photographer Galleries: http://www.ArtInNaturePhotography.com/ Blog: http://www.ArtInNaturePhotography.com/wordpress/
Thanks. I have that line in result_utils.py but it still has this error. I changed mainbrain to use 'US/Pacific' for the h5s - not ideal but it seems to work.
The h5 file seems to have have 'PST' as the timezone for me, but this is not recognized by pytz. Instead, use 'US/Pacific', which does work? This is more of a bug with pytz ('EST' and 'MST' both work, so 'PST' should), but perhaps we should be robust to that?