Gossamer Forum
Home : Products : Links 2.0 : Customization :

Time Format (Code Hack)

Quote Reply
Time Format (Code Hack)
This code hack allows you to print your local time in your LINKS pages not the local time where your web server is located.


Hope this helps those LINKS users who want to print their local build time in their LINKS pages.

Smile

I submitted this code hack in the FAQ section of the Resource Center this evening.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Time Format (Code Hack) In reply to
Good job, Eliot!

However, I promised to you, that I will implement Time Zone feature into my Date Format mod (which also supports time formats) before I release it.
I don't know when will I have time to implement Time Zone feature, so it's fine you released separately.

Webmaster33
Quote Reply
Re: Time Format (Code Hack) In reply to
Nice, Eliot

However, if you are on Unix and have telnet access to your server it is easier to:
% chmod 600 ~/etc/localtime
% cp /usr/share/zoneinfo/Europe/London ~/etc/localtime

Where *London* is just an example - there are many more for allmost all regions of the world.

Then the timezone will be corrected for all your scripts where time and dates are used.
Quote Reply
Re: Time Format (Code Hack) In reply to
Thanks for the comments.

webmaster33,

I knew that you were in the process of updating the date.pm module you were working on and remember when I suggested GMT/Time Zone support. Well, I needed a solution sooner than later, so I came up with a very quick and simple code hack.

JAC,

Thank you, however, keywords here are "if you are on Unix"...I wanted to find a more universally accessible answer. And yes, I knew about doing it via UNIX, but I prefer doing it via Perl.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Time Format (Code Hack) In reply to
Pretty sweet little addition Eliot!

------------------
John B. Abela
Owner, 4CM
www.4cm.com/
support@4cm.com

Presently working on:
www.humbee.com/
Quote Reply
Re: Time Format (Code Hack) In reply to
Thanks.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.