I am having trouble displaying the correct date, well actually its only the time.
In the db the date is stored in this form: '2012-09-28 23:30:00' (off by 7 hours of actual date time)
That is the value for a date of an event.
When I retrieve it using this script(for drupal):
$ttdate = $obj->field_date_test_value;
$nttdate = strtotime($ttdate);
$okdate = format_date($nttdate, $type = 'medium');
print $okdate;
...it works fine but the time is off by 7 hours. So instead of showing 'Fri, 9/28/2012 - 4:30pm' it shows 'Fri, 9/28/2012 - 11:30pm'.
Note that on the event's page, drupal retrieves the correct time...
I did some research and I figured it has to do with the timezone? But I have the timezone set to Los Angeles so I am not quite sure what is going on. Maybe its my script?