Php date() giving the wrong time after parsing
Posted
by Kirill
on Stack Overflow
See other posts from Stack Overflow
or by Kirill
Published on 2010-06-12T22:25:18Z
Indexed on
2010/06/12
22:32 UTC
Read the original article
Hit count: 368
This is confusing as hell, here's the php I'm using:
<?php echo date('H:i D j, F',$j->date); ?>
This is what it gives me:
01:33 Thu 1, January
Which seems fine, until you look at the actual time that is being given ($j->date provides):
2010-06-12 21:12:23
Why is it giving me a January and what am I doing wrong?
© Stack Overflow or respective owner