https://forge.joomlapolis.com/https://forge.joomlapolis.com/favicon.ico?17095821032012-05-18T17:56:47ZJoomlapolis forgeCB GroupJive - Bug #3530: Dates are not storing properly with a timezone specifiedhttps://forge.joomlapolis.com/issues/3530?journal_id=74672012-05-18T17:56:47Zkrileonkrileon@joomlapolis.com
<ul></ul><p><a class="external" href="https://www.joomlapolis.com/forum/240-potential-bugs/200565-time-zone-madrid?limit=6&start=6#200673">https://www.joomlapolis.com/forum/240-potential-bugs/200565-time-zone-madrid?limit=6&start=6#200673</a></p> CB GroupJive - Bug #3530: Dates are not storing properly with a timezone specifiedhttps://forge.joomlapolis.com/issues/3530?journal_id=74682012-05-18T19:36:21Zkrileonkrileon@joomlapolis.com
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Implemented 3 new functions: getUTCDate (date), getUTCTimestamp (strtotime), and getUTCNow (time) to return UTC values and avoid Joomlas alteration of the default PHP timezone. This helps ensure dates, times, and comparisons are all done properly with UTC. The only time timezone is applied is on display (as it should be).</p>
<p>Events integration always outputs as UTC to ensure the time you specified and the time stored to database is always output. So if you select 1:00 PM it will display as 1:00 PM. Doing anything otherwise will just cause problems as lets say we store the value as UTC then output with timezone the user selected 1:00 PM, but now it displays as 5:00 PM, which is very confusing; then other users could see it as 3:00 PM, etc.. it'd make no sense. Instead it'll output as 1:00 PM and you determine its time relevant to your self based off the location of the event. Note it already displays like this so no one will notice this internal change (it just avoids Joomla from screwing up the dates and times).</p> CB GroupJive - Bug #3530: Dates are not storing properly with a timezone specifiedhttps://forge.joomlapolis.com/issues/3530?journal_id=75862012-06-07T20:28:51Zkrileonkrileon@joomlapolis.com
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>