I'm not from the US but I want to use date_default_timezone_set
and set it to Englewood, Colorado. What do I use? I can't find any America/Englewood
or America/Colorado
in the documentation. Any help?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
As google tells me that Colorado is in the 'Mountain Time Zone' use
US/Mountain
from the documentationThe correct TZDB zone name is
America/Denver
.US/Mountain
is an alias that presently resolves toAmerica/Denver
, but it may not always be that way in the future.The
US/*
aliases are there for backwards compatibility only, and do not follow the normal naming conventions of the IANA/Olson time zones that PHP uses.From the PHP documentation:
See also: Are 'US/Eastern' and 'US/Central' and 'US/Pacific' deprecated for strftime or just PHP?