I am using the query module and grabbing a mysql datetime. I am trying to display the localized date using
localized date : {mydate format="%n-%j-%Y"}
localized time : {mydate format="%g:%i %a"}EE is returning a date and time that is totally wrong and is the same for any datetime entry in the db. The date returned is always 12-31-1969 and the time returned is always 8:33 pm. When I format the date and time using sql DATE_FORMAT, I get the gmt values from the db.
My EE version is v2.2.1 build date 20110705.