Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How to best do timezone changes?
Old 10-11-2008, 02:17 PM How to best do timezone changes?
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
Hi,

Okay im building a CMS like system and i want it to be flexible, and of course want the option for users to change the timezone etc and aswell as day light savings.

So i would like them to be able to select like GMT, GMT +1 etc and also to be able to set automatic DLS on or off

How can i best do this?

Many Thanks,
Dan
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
 
Register now for full access!
Old 10-11-2008, 03:56 PM Re: How to best do timezone changes?
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
Look up:
http://uk.php.net/date
http://uk.php.net/manual/en/function...mezone-get.php
http://uk.php.net/manual/en/function...mezone-set.php
http://uk.php.net/manual/en/function...mezone-get.php
http://uk.php.net/manual/en/function...mezone-set.php
http://uk.php.net/manual/en/function...tions-list.php
http://uk.php.net/manual/en/function...offset-get.php

With the above, use
http://uk.php.net/manual/en/function.localtime.php

Or if your lazy, just use the code on
http://uk.php.net/manual/en/function...time.php#79037
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE

Last edited by rogem002; 10-11-2008 at 03:57 PM..
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Reply     « Reply to How to best do timezone changes?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18466 seconds with 12 queries