內容簡介
WordPress 在後台管理中設定網站時區,並以此顯示所有日期和時間。不過當您的使用者來自世界各地時,日期和時間可能不再具有實際意義。
此外掛可以讓使用者選擇自己喜歡的時區,並在前端和後台中處理日期和時間轉換。
計劃是從簡單開始並逐步改進。由於時間轉換的複雜性,目前需要將您的網站時區設置為 UTC+0、UTC 或沒有 UTC 偏移的其他時區。您可以在管理中心的「設定」-「常規」中找到此設置。
另外請注意,如果您更改網站時區,這將不會更新數據庫中的任何數據。WordPress 僅會假設所有日期和時間都以 UTC 輸入。這將不幸地導致所有日期和時間移動到舊時區與 UTC 的偏移量之和的位置。但請記住,將日期/時間存儲為 UTC 是一個好習慣,所有輸入的新日期和時間都會正確無誤,並不會發生轉移。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
WordPress displays all dates and times based on a site-level timezone setting configured in the admin back-end. The problem is when you user base handles people from all over the world date and times really don’t mean much any more.
This plugin enables the user to select their own timezone and it handles the date and time conversion in both the front-end and admin section of the site.
The plan is to start out simple and improve from there. Currently, due to some complexities with time conversions, this plugin requires your site-level timezone to be set to UTC+0, UTC or some other timezone with no UTC offset. You can find this setting in the admin section under Settings -> General.
Also, please note that if you are changing your site-level timezone, this will not update any data in the database. WordPress simply assumes all date and times entered, where entered in UTC. This will unfortunately shifted all date and times by the number of hours your old timezone was offset from UTC. But please keep in mind that storing date/times in UTC is a good habit and all new date and times entered correct with not shift.
