Project

General

Profile

Actions

Bug #3530

closed

Dates are not storing properly with a timezone specified

Added by krileon almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
18 May 2012
Due date:
% Done:

100%

Estimated time:

Description

When you specify a timezone the offset doesn't calculate properly. Dates are being stored with date( 'Y-m-d' ) and Joomla changes how this PHP function behaves by changing the timezone globally. A new function is needed to change the timezone to UTC, prepare the date, then change it back to whatever it was (this method can be seen in the author content plugin).

Actions

Also available in: Atom PDF