I am using Google App Engine with python. And I can not install a third-party library.
I, although this should work, but it really works without errors, but it returns the current time zone.
What have I done wrong?
from datetime import tzinfo, timedelta, datetime class Seoul_tzinfo(tzinfo): def utcoffset(self, dt): return timedelta(hours=9) def dst(self, dt): return timedelta(0) greeting.date = datetime.now( Seoul_tzinfo() )
source share