How can I get the local server's timezone without relying on php.ini
or other configuration files?
I am looking for an output similar to the output of date('e')
. eg. "UTC", "GMT", or "Atlantic/Azores".
I need to know this so that I may know the MySQL timezone.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…