Project

General

Profile

Actions

Bug #3535

closed

Registration date set by CB isn't using database now

Bug #3535: Registration date set by CB isn't using database now

Added by krileon over 13 years ago. Updated about 13 years ago.

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

100%

Estimated time:
3:00 h

Description

Current usage is using PHP date, which Joomla changes the default timezone of resulting in the registration date storing with timezone applied.

https://www.joomlapolis.com/forum/153-professional-member-support/201044-registration-date-is-wrong-two-hours-extra


Files

3535-part1.patch (1.31 KB) 3535-part1.patch krileon, 24 May 2012 19:09
3535-part2.patch (801 Bytes) 3535-part2.patch krileon, 24 May 2012 19:09

Updated by krileon over 13 years ago Actions #1

Patch fixes the datedbnow to properly set timezone to UTC on J1.6+ (previous Joomla version behavior remains same). It also adds caching and adds a variable to determine if format should be with (default) or without time. It then applies the new datedbnow function to the registration date as offset is added on display.

Updated by beat over 13 years ago Actions #2

  • Target version changed from CB 1.8.1 to CB 1.9

Updated by beat about 13 years ago Actions #3

  • Status changed from Resolved to Closed
  • Estimated time set to 3:00 h

Fixed as suggested in r1890 .
Thank you Kyle.

Actions

Also available in: PDF Atom