Jump to content


Photo

One other PHP help ??? if I may ...


  • Please log in to reply
2 replies to this topic

#1 Midnite

Midnite
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 16 June 2006 - 07:32 AM

If there a way to chage the time from one timezone to another ??? could someone please post a script that would do this ... I can get a variable for the time but do not understand how to convert it to eastern time ... ??? I think my server is in Europe so the time is WAY OFF !!! any help PLEASE


Thanks;
Midnite

#2 d_barszczak

d_barszczak
  • Members
  • PipPipPip
  • Advanced Member
  • 188 posts
  • LocationBradford - UK

Posted 16 June 2006 - 08:13 AM

[!--quoteo(post=384474:date=Jun 16 2006, 08:32 AM:name=Midnite)--][div class=\'quotetop\']QUOTE(Midnite @ Jun 16 2006, 08:32 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
If there a way to chage the time from one timezone to another ??? could someone please post a script that would do this ... I can get a variable for the time but do not understand how to convert it to eastern time ... ??? I think my server is in Europe so the time is WAY OFF !!! any help PLEASE
Thanks;
Midnite
[/quote]


Just had a look on php.net and it seems it was only introduced in php 5 which is fine if this is what your running.

date_default_timezone_set ( string timezone_identifier )

A list of TimeZones can be found here: [a href=\"http://uk2.php.net/manual/en/timezones.php\" target=\"_blank\"]http://uk2.php.net/manual/en/timezones.php[/a]

When all else fails - Try reading the manual.

Integrated IT Systems Ltd


#3 Midnite

Midnite
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 17 June 2006 - 03:40 AM

Yeah but how would I apply this to a php script I have NO direct access to the PHP on the machine ...

Thanks;

Chad




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users