我需要返回正确的ISO 8601 我的国家(波兰、华沙)的日期格式。它应该是UTC+1。
我使用函数get_the_date()
带参数"c". 在…上General Settings 在现场Timezone 我选择了“华沙”,但当我使用<time datetime="<?php echo get_the_time(\'c\') ?>"><?php echo get_the_date() ?></time>
it返回,例如:<time datetime="2015-12-14T22:00:52+00:00">December 14, 2015</time>
.
它总是返回“+00:00”,无论我使用哪个时区。波兰时间应该是凌晨1点(华沙时区)。
我哪里出错了?求求你,救命!