veenuisthebest
08-14-2008, 03:02 AM
I am not able to retrieve the current time according to user's timezone settings using vbdate()
I am using this, but this always shows 01st of January, 1970:-
$timestamp = vbdate("jS \of F, Y h:i:s A", $result['TIMESTAMP']);
Then I use this, and it works fine but always show time 5 hours back.
$eventdate = strtotime($result['TIMESTAMP']);
$timestamp = vbdate("jS \of F, Y h:i:s A", $eventdate);
What wrong am I doing? To insert current time, i have simply created a column of datatype TIMESTAMP and it inserts fine.
Thank You
I am using this, but this always shows 01st of January, 1970:-
$timestamp = vbdate("jS \of F, Y h:i:s A", $result['TIMESTAMP']);
Then I use this, and it works fine but always show time 5 hours back.
$eventdate = strtotime($result['TIMESTAMP']);
$timestamp = vbdate("jS \of F, Y h:i:s A", $eventdate);
What wrong am I doing? To insert current time, i have simply created a column of datatype TIMESTAMP and it inserts fine.
Thank You