Find solution

Where to get my time zone from?

Here are 17 best answers to ‘Where to get my time zone from?’ - the most relevant comments and solutions are submitted by users of Stack Overflow, Amazon Askville and Quora.

Best solution

  • php - how to get the server time zone

    how do i get the srver time zone exept of the date("e") function i need somthing that will check the os time zone and not depends on the php ini and stuff like that... thanks!!! edit 1 i need this becouse i need to know the mysql time zone if i run a query for select global_time_zone i got the result "system" and i need a result like "amrica/new york"


    If you're on *nix, call the system's date using popen: popen("date +%Z");

    Mark as irrelevant Undo

Other solutions