Can find many instances of date_format
OR convert_tz
questions but none with both, so sorry if this has been asked and answered.
Anyway... I'm coming up empty with the following query.
"SELECT... MAX(DATE_FORMAT(CONVERT_TZ(p.posted_on, 'UTC', 'America/New_York'),
'%e-%b-%y %l:%i %p')) AS last, MIN(DATE_FORMAT(CONVERT_TZ(p.posted_on, 'UTC',
'America/New_York'), '%e-%b-%y %l:%i %p')) AS first.....";
Array
(
[thread_id] => 7
[subject] => Sample Thread
[username] => troutster
[responses] => 1
[last] =>
[first] =>
)
I can get rid of the CONVERT_TZ
and just use p.posted_on
by itself and it works fine, so I'm assuming I'm doing something wrong in the conversion. Thanks for any help you can provide.