Timezones and the DateTimeField - Django
- by RadiantHex
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! =)