Welcome to MyBlog_笑著流淚II
歡迎使用非Internet Explorer瀏覽器,欣賞這裡的一切資訊!!
我是武男, 24歲, 大家都叫我阿男...有的人還會叫我白目研究生...找我的話請Google "武男" 就沒錯了~
PHP-Dorm Project階段整理
Autor 白目研究生
用了APPSERV2.6部署
在
[sourcecode language='php']
getdate();
[/sourcecode]
看到了這樣子的問題
Strict Standards: getdate() [function.getdate]: It is not safe to rely on the system’s timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘UTC’ for ’8.0/no DST’ instead in .\AppServ\www\modify.php on line 1
看樣子應該會有SET的方法設定時區
可以改成這樣
[sourcecode language='php']
date_default_timezone_set(『Asia/Taipei』);
echo strftime(『%Y-%m-%d %H:%M:%S』);
[/sourcecode]
參考資料:這裡
才發現原來台灣一直不適用Etc/GMT+8
似乎要用
asia/taipei
這下子誤會大了…
然後還要看一下SNMP MIB TREE
又快又上手的,就是GetIf了
以上
Random Posts
請留言
Comment
Options
-
七月 28, 2008 -
FreeBSD, 武男亂講 -
0 comments
-
Comments RSS