Title: Wrong Date
Last modified: August 19, 2016

---

# Wrong Date

 *  [possien](https://wordpress.org/support/users/possien/)
 * (@possien)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/wrong-date-4/)
 * When I use the php <?php echo “Today is: ” . (date(“l M d, Y”) . “
   “;?> anywhere
   in my site the correct date (and time) are reflected. When I use it in a Worpress
   page it returns the next day. I had to work around it using:
 * <?php $yesterday = mktime(0, 0, 0, date(“m”) , date(“d”)-1, date(“Y”)); $tdate
   = getdate($yesterday);
    echo ”   Today is: “.@$tdate[month] .” “.@$tdate[mday].”,”.
   @$tdate[year].”“; echo ”   Day of the year: “.@$tdate[yday].”<hr />”;?>
 * Anybody else experience this?

Viewing 1 replies (of 1 total)

 *  [WPpremium](https://wordpress.org/support/users/wppremium/)
 * (@wppremium)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/wrong-date-4/#post-1451376)
 * Make sure that you have select correct time zone from your WordPress admin panel.
 * Go to Settings -> General and set the timezone according to server time.

Viewing 1 replies (of 1 total)

The topic ‘Wrong Date’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [WPpremium](https://wordpress.org/support/users/wppremium/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/wrong-date-4/#post-1451376)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
