Project

General

Profile

Actions

Bug #3268

closed

Article tab does not show articles immediately after creation (UTC articles timezone issue)

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

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
14 February 2012
Due date:
% Done:

100%

Estimated time:
1:00 h

Description

Due to the "publish_up" date always being in the future it seams the match of publish_up to $now is always wrong. Only after several hours have passed will it actually show.

Joomla 1.6+ is using "JFactory::getDate()->toSql()" to set the database date value.


Files

3268.patch (1.12 KB) 3268.patch krileon, 14 February 2012 20:47
3268_alt.patch (1.24 KB) 3268_alt.patch krileon, 14 February 2012 20:47

Updated by krileon about 12 years ago

2 proposed solutions. 1 just uses Joomla API and the other temporarily sets the timezone to UTC as Joomla does before constructing the date.

Actions #2

Updated by beat about 12 years ago

  • Subject changed from Article tab does not show articles immediately after creation to Article tab does not show articles immediately after creation (UTC articles timezone issue)
  • Status changed from Resolved to Closed
  • Estimated time set to 1:00 h

Fixed in commit 1757 as suggested without JDate dependency.

Actions

Also available in: Atom PDF