diff -r 40d3943c3846 -r 6b70bf7c698f ztfy/utils/doctests/README.txt --- a/ztfy/utils/doctests/README.txt Sat Apr 03 13:36:41 2010 +0200 +++ b/ztfy/utils/doctests/README.txt Sun Apr 04 00:48:00 2010 +0200 @@ -103,14 +103,15 @@ TZ data was to store every datetime value in GMT timezone. As far as I know, there is no easy way to know the user's timezone from his request settings. So you can: - store this timezone in user's profile, -- define a static server's timezone :-/ +- define a static server's timezone +- create and register a ServerTimezoneUtility to handle server default timezone. My current default user's timezone is set to 'Europe/Paris' ; you should probably update this setting in 'timezone.py' if you are located elsewhere. >>> from ztfy.utils import timezone >>> timezone.tztime(ddate) - datetime.datetime(2008, 3, 8, 20, 13, 20, tzinfo=) + datetime.datetime(2008, 3, 8, 19, 13, 20, tzinfo=) 'gmtime' function can be used to convert a datetime to GMT: