Issue 31 in cortex-vfx: SequenceLsOpTest failure in certain timezones

0 views
Skip to first unread message

corte...@googlecode.com

unread,
Sep 20, 2010, 12:50:44 PM9/20/10
to cortex...@googlegroups.com
Status: Accepted
Owner: thehaddonyoof
Labels: Component-IECore

New issue 31 by thehaddonyoof: SequenceLsOpTest failure in certain timezones
http://code.google.com/p/cortex-vfx/issues/detail?id=31

What steps will reproduce the problem?
1. Run the SequenceLsOpTest in a timezone other than PST?

Here's the report from Ash :

As you requested i've looked more closely at the timestamps thing.
Here is what i think is wrong and lead to the FAIL message during the
tests.

In the test source code there is two times that are
"captured" (SequenceLsOpTest.py) :
now = datetime.datetime.now()
oneHourAgo = now + datetime.timedelta( hours = -1 )

For me (in France), right now it means roughly now=9.00PM and
oneHourAgo=8.00PM

During the filtering process here the line that is used to get the
reference timestamp of the newly created files (SequenceLsOp.py) :
st = os.stat( sequenceFile )
modifiedTime = datetime.datetime.utcfromtimestamp( st.st_mtime )

Which means in UTC time roughly 7.00PM (as the files are created at
the same time than now variable is filled). In that case the
difference between the French time and the UTC time is more than one
hour ahead, so the file are always created before the oneHourAgo
value.

In your case, i think you are in Vancouver right ? It means roughly
that now=12.00PM and oneHourAgo 11.00AM. It's working the files are
created at 7.00PM, it's not before 11.00AM and it is after 11.00AM.

I guess this source code does not work on this side of the Ocean :) It
does not work either on your side if the values that your are using
are lower than the difference between the Vancouver time and the UTC
time, but the test does not fail in that case.

corte...@googlecode.com

unread,
Sep 20, 2010, 12:55:22 PM9/20/10
to cortex...@googlegroups.com
Updates:
Labels: Priority-Low

Comment #1 on issue 31 by john.imageengine: SequenceLsOpTest failure in
certain timezones
http://code.google.com/p/cortex-vfx/issues/detail?id=31

(No comment was entered for this change.)

corte...@googlecode.com

unread,
Sep 20, 2010, 12:59:04 PM9/20/10
to cortex...@googlegroups.com
Updates:
Labels: Type-Defect

Comment #2 on issue 31 by john.imageengine: SequenceLsOpTest failure in

corte...@googlecode.com

unread,
Feb 16, 2011, 1:21:58 PM2/16/11
to cortex...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 31 by john.ima...@gmail.com: SequenceLsOpTest failure

This issue was closed by revision r4099.

corte...@googlecode.com

unread,
Feb 16, 2011, 6:22:59 PM2/16/11
to cortex...@googlegroups.com

Comment #4 on issue 31 by danbeth...@gmail.com: SequenceLsOpTest failure in
certain timezones
http://code.google.com/p/cortex-vfx/issues/detail?id=31

Yes!

Reply all
Reply to author
Forward
0 new messages