[WordPress] 外掛分享: WP User Level Timezone

首頁外掛目錄 › WP User Level Timezone
30+
安裝啟用
★★★★★
5/5 分(2 則評價)
2053 天前
最後更新
問題解決
WordPress 5.4.0+ v1.0.0 上架:2020-08-03

內容簡介

WordPress 在後台管理中設定網站時區,並以此顯示所有日期和時間。不過當您的使用者來自世界各地時,日期和時間可能不再具有實際意義。

此外掛可以讓使用者選擇自己喜歡的時區,並在前端和後台中處理日期和時間轉換。

計劃是從簡單開始並逐步改進。由於時間轉換的複雜性,目前需要將您的網站時區設置為 UTC+0、UTC 或沒有 UTC 偏移的其他時區。您可以在管理中心的「設定」-「常規」中找到此設置。

另外請注意,如果您更改網站時區,這將不會更新數據庫中的任何數據。WordPress 僅會假設所有日期和時間都以 UTC 輸入。這將不幸地導致所有日期和時間移動到舊時區與 UTC 的偏移量之和的位置。但請記住,將日期/時間存儲為 UTC 是一個好習慣,所有輸入的新日期和時間都會正確無誤,並不會發生轉移。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP User Level Timezone」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon