Adding correct date to header
-
I want to add the date to my site’s header, but I need to adjust the timezone since my server is in a different location. Here’s the code I used to display the date:
<?php echo date('l jS F Y'); ?>
Can someone tell me how to adjust the timezone so it displays correctly for my location (New York)?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Adding correct date to header’ is closed to new replies.