datetime issue

Νικόλαος Κούρας nikos.gr33k at gmail.com
Sat Sep 15 13:33:15 EDT 2012


Hello again,

one small matter too.

# get some enviromental values
locale.setlocale(locale.LC_ALL, 'el_GR')

..........
..........

date = datetime.datetime.now().strftime( '%y-%m-%d %H:%M:%S' )


although iam setting greek as locale the time is 8 hours before, like in texas, us

How can i change this to save the correct Greek time in variable $date ?

Thank you.



More information about the Python-list mailing list