Convert timezone

Hi,

I have date with my server's timezone. I want to convert it with another timezone either EST or GMT, found Date:Manip module but cant find exact use, can anyone help...

Use TZ variable

Is this date string in a log file or suchlike? If so can you provide an example?

date is not in any log file... just got Date_ConvTZ function from Date:Manip module, solved my problem

Thanks all

I recently found that PHP doesn't have an inbuilt function for conversion of time/date between multiple time zones and neither could I find a third-party function for the purpose. However, I did find the PEAR class which has inbuilt support for multiple time-zones but it cannot be used by "including" itself in the php page. PEAR class can be used only after installation, which may not be feasible in each and every case.
To avoid the hassles of installation I have written a set of 3 functions in PHP which wil allows you to -

  1. Convert GMT to local time zone
  2. Convert local time zone to GMT
  3. Convert between two different time zones.