Ed Catmur wrote:
> Dr. Awab Alvi wrote:
>> Short of sounding stupid - can I ask where can I
enter this time zone.
>>
>> Thanks yet again
>>
>> Ed Catmur wrote:
>>
>>> Dr. Awab Alvi wrote:
>>>> I had a question, is it possible to somehow
hack the UTC time to
>>>> display as +5 GMT localized to the blogger
audience in Pakistan? So
>>>> that the posts show date & time in
Pakistan Standard Time.
>>>> Presently my server is located in
California and it seems the posts
>>>> are displaying the server time on the west
coast resulting in a time
>>>> lapse of over 12 hours
>>>
>>> Have you tried setting TZ=Asia/Karachi?
>>>
> I assume your server has /etc/localtime symlinked to
> /usr/share/zoneinfo/US/Pacific or similar. You need to
override this so
> that Planet thinks it's in Pakistan. You do this using
the environment
> variable TZ.
>
> e.g.
>
> $ env TZ=Asia/Karachi ./planet.py pathto/config.ini
>
> If you're not sure how to set an environment variable I
suggest asking
> your administrator or reading a Unix textbook.
As far as I know, both Planet 2.0 and Planet Venus
consistently ignore
localtime and all processing and formatting is in GMT.
This makes both the assertion that posts are displaying
using the server
time on the west coast and the assertion that setting the TZ
environment
variable would fix this are incomprehensible to me.
On my planet, I use JavaScript to convert all times to the
timezone of
the viewer.
If you are using Venus and XSLT, date:add is available:
http:/
/exslt.org/date/functions/add/index.html
If somebody wants to patch Venus (with tests!) to add a GMT
time offset,
I will incorporate such patches.
- Sam Ruby
--
devel mailing list
devel lists.planetplanet.org
http://lists.planetplanet.org/mailman/listinfo/devel
|