Jump to content

Recommended Posts

I am trying to output different dates/times for different timezones with the date() function

 

i realize you can put a specific timestamp to output the date

the question is how do I input different timestamps for different timezones??

 

for example I can input time(); but that is only one timezone, the default one of the php.ini file

 

how do I make timestamps from different timezones??

 

I'm using php 4 so I can't specify specific timezones to use the date function the other way that it describes when defining specific timezones

 

thank you

Link to comment
https://forums.phpfreaks.com/topic/54142-making-dates-for-different-timezones/
Share on other sites

ok thanks i'm looking at the list of timezones available in the php.net manual

http://www.php.net/manual/en/timezones.php#timezones.africa

 

however I want to emulate how at SMF forums they let you choose a default timezone when you register, via a dropdown bar

 

is there a way to grab all timezones available and put them in an array instead of manually writing each down and putting it into an array, as there are thousands of timezones or options available in the timezone list

 

how does smf do it?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.