I want to serve my Django app the current time which clients will parse this datetimestamp with Javascript. I include my timezone as such:
Apr 30, 2012 12:38:08 -400n
I currently use the following way to do this:
datetime.now().strftime("%b %d, %Y %H:%M:%S -400n")
However the end partm -400n is problematic, light saving and all others and it can change, simply harcoding will be nonesense, is there another way to automatically achieve this ?
Upgrade to django 1.4, then read the documentation on timezone support, which is a new feature for 1.4.