WordPress show bad the php hour and date

Did you go to Settings >> General and set the correct offset for your timezone?

To get the date:
<?php $date = get_the_time('dmY', $post->ID); ?>

To print the date:
<?php the_date('dmY'); ?>

Both need to be within the Loop!