[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Time shift problem when calling svn_time_to_cstring (when using Python)?

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2006-06-12 19:35:49 CEST

Mathias Weinert wrote:
>>I don't think you should need to change any of dates in the test expected
>>output. Are you seeing something that makes you think otherwise? (Got
>>specific examples?)
> I just found out where my problem lies. The svn_time_to_cstring delivers
> the correct GMT date but mailer.py then prints the date in the human
> readable form. As a result of this the output of mailer.py depends on the
> time zone of the caller and therefor I will always get differences
> between my output and the expected one which is found in mailer-t1.current.
> So I think the only possibility to avoid this is to set the local timezone
> to GMT before running the test (or setting it within the test). Or do you
> have any other idea?

Hrm, I see. If setting to GMT for the duration of the test run is simple
enough (is it a tweak to one of the LC_* variables?), that sounds like a winner.

C. Michael Pilato <cmpilato@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on Mon Jun 12 19:36:33 2006

This is an archived mail posted to the Subversion Dev mailing list.