Jump to content

PHP time/date


kanala

Recommended Posts

I'm having a bit of trouble with my date/time php thing.

ini_set('date.timezone', 'Europe/London');$today = date("F j, Y, G:i");

Firstly the timezone bit doesn't work and always shows 1 hour backwards from UK time.And also the actual time is cut off by 1 digit e.g. 17:5 instead of 17:50 (when there are 4 digits).Thanks

Link to comment
Share on other sites

i'm not sure if the time is exact.cuz idk wut time it is in Londonhere try this:

<?phpini_set('date.timezone', 'Europe/London');echo "Time: ". date("F j, Y, G:i")."\n"; ?>

as for the dropped digit the only thing i can think of is checking your cssto see if the container is too small.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...