Datetime functions get locale from session