I'm using the php "echo date" to display the current time and date on my blog, which works good, only the time displayed is different from my wordpress time (I dunno if it's UTC or whatever but it isn't UTC+9, Japanese time, like the rest of my blog is).
I tried and use "date_default_timezone_set" but for some reason, it gave me an error: "Fatal error: Call to undefined function: date_default_timezone_set()"
This is the code I was using
<?php echo date_default_timezone_set('Asia/Tokyo'); ?> <?php echo date ('l'); ?><br> <?php echo date ('F d'); ?> <br> <?php echo date ('h:i A'); ?>
All I want to do is to make sure the time and date displayed are Japanese standard time. Any help would be much appreciated!