My Knowledge Note
Introduction
Git
Scenario
Gitbook
JavaScript
Tips
Linux
bash
Tips
CentOS7
ftp service
nginx + php
manjaro17
input method
LNMP
Opencart
語系與翻譯
PHP
Cross-Origin Request
cURL
Security
$_SERVER
Tips
RegExp
Template Engine
DateTime
Api Auth
SQL
pgSQL
Web
CSRF
Gambling
Others
VSCode
Hexo
Powered by
GitBook
DateTime
PHP DateTime
要注意主機的時機
date_default_timezone_get()
與
date_default_timezone_set()
關於日光節約時間(如 America/NewYork EDT),使用
strtotime()
與 SQL 自動轉換
AT TIMEZOONE()
或時間字串即可
保險還是固定主機時間為主,日光節約時間會受政策公告影響
References
PHP.net Manual: DateTine
timestamp transform
PHP UTC to Local Time
DateTime class
results matching "
"
No results matching "
"