setting the time zone in PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

setting the time zone in PHP

Post by kendall »

Hello,

wasnt there a function that allowed you to adjust either client time or server time zone to equal each other?

i used it once but cant for the love of gosh remember what it was....something that involved setting the timezeon code

e.g.
LA PAZ
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post by foobar »

I checked the PHP Manual, and whaddya know! I found it in a matter of seconds!

setlocale()
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

setting the time zone in PHP

Post by kendall »

:? Duhhh.....I knew about that but i wasnt sure that that was it.

I dont think that is what i was talkin about.

i believe it would have been the
put_env(TZ=Caracas/La Paz)
im really interested in the timsezone constants....especially for Trinidad and Tobago which uses the Caracas/La Paz timezone

Kendall
Post Reply