-1

For my surprise today i see wordpress put bad the hour

In settings i have the hour of my country , France and City Paris

And today i try for create one function the php date function for show the date

<?php
echo date("dmY");
?>

For my surprise as i tell until , see wordpress change my php time and put day 19 and change the hour and no show the real time actually

If the same code insert in other site - no use wordpress - and the date show right , day 20

How it´s possible wordpress change native function of php and show when runnning this thedate of php , by other side in settings of wordpress i se utc different hour to local time , utc show 19 and local time show 20

I don´t understan all this .....

Thank´s for the help

4

1 回答 1

0

不要使用 the_date。使用the_time

于 2013-07-20T16:03:06.520 回答