Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix timezone error in XmlRpc #1758

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kraity
Copy link
Contributor

@kraity kraity commented Apr 14, 2024

                'date_modified'          => new Date($this->options->timezone + $posts->modified),
                'date_modified_gmt'      => new Date($posts->modified),

未修正之前在IXR\Date中使用的date计算日期是依赖服务器时区,WP中已后缀_gmt为格林威治时间,date_modified_gmt不再是格林威治时间。

并且本地时间date_modified、格林威治时间date_modified_gmt因为快了$timezone时区,所以两个时间永远不正确。

Signed-off-by: Kraity <kraity@krait.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant