Timezones and the DateTimeField - Django
Posted
by RadiantHex
on Stack Overflow
See other posts from Stack Overflow
or by RadiantHex
Published on 2010-03-29T18:27:29Z
Indexed on
2010/03/29
18:53 UTC
Read the original article
Hit count: 514
Hi folks,
I'm trying to implement a "time ago" feature, for the displaying of items on a site. As I'm caching the pages I wish to use javascript in order to render the "time ago".
Javascript knows local time and problably the Timezone of the local machine so I could play with that, but that would require to hard code the server's timezone.
Therefore I'm trying to figure out a simple way to pass a ISO 8601 timestamp, in GMT time. Is there any simple and straight forward way for doing this?
Help would be much appreciated! =)
© Stack Overflow or respective owner