HI The main thing to watch is the number of files in the fill pytz distribution, if you software stack also has a lot fo files you find youself over the 1000 file limit
T On Mar 6, 9:17 am, Stephen Judd <[email protected]> wrote: > I downloaded it and import it for Mashical.com without a problem. It > probably adds some overhead at startup, but it's an invaluable utility if > your dealing with multiple timezones. > > Steve > > On Thu, Mar 5, 2009 at 6:34 PM, Tim Hoffman <[email protected]> wrote: > > > Hi > > > You can't probably can't just download and include it with your > > project as it has too many files in the module. > > > Have a look at this. > >http://takashi-matsuo.blogspot.com/2008/07/using-zipped-pytz-on-gae.html > > > Rgds > > > T > > > On Mar 6, 6:29 am, andrew <[email protected]> wrote: > > > Any idea on how to include it with appengine? > > > > On Mar 5, 3:59 am, Tim Hoffman <[email protected]> wrote: > > > > > pytz isn't included with python or gae, you will need to get the > > > > package from pypi > > > > > T > > > > > On Mar 5, 10:34 am, andrew <[email protected]> wrote: > > > > > > I was able to convert the datetime timezone from the datastore to EST > > > > > by following thehttp://timezones.appspot.com/ > > > > > > for example: > > > > > event.date = > > event.date.replace(tzinfo=TZINFOS > > > > > ['utc']) > > > > > event.date = event.date.astimezone(TZINFOS > > > > > ['est']) > > > > > > This works great, however I noticed that EST is hardcoded to UTC-5: > > > > > > def utcoffset(self, dt): return datetime.timedelta(hours=-5) > > > > > > So when spring rolls around and we are in daylight savings, I'm going > > > > > to have to update the code to UTC-4, or my time will be off by an > > > > > hour. > > > > > > It seems that pytz would solve this problem but I couldn't figure out > > > > > how to import it into my application. I tried > > > > > > import pytz > > > > > > but got "error <type 'exceptions.ImportError'>: No module named pytz" > > > > > > Any suggestions? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
