內容簡介
我的目標是創建一個外掛,允許作者設置他們自己的時區。這不需要太多時間,但我一直一再推遲。它只需要考慮日光節約時間,但這有點棘手,因為你需要以某種方式記錄過去發佈的文章的 DST 時間。
我有一些實現這個的想法,但如果有人有任何聰明的想法,請馬上展示出來。我打算鉤取pre_option_gmt_offset而不是現在所使用的get_the_time 過濾器。
如果有任何問題,請通知我:[email protected]
外掛標籤
開發者團隊
原文外掛簡介
My intention was to create a plugin to allow authors to set their own time zones. It shouldn’t take too much, but I keep having to put it off. It just needs to take into account daylight savings time, but this is a little tricky because you need to keep a record somehow of past DST times for posts published in the past.
I have a couple ideas for implementing this, but if anyone else has any brilliant ideas, please go for it. Another thing I intend to do is hook into pre_option_gmt_offset instead of the get_the_time filter, as it does now.
Let me know of any problems: [email protected]
