[MAGNOLIA-1231] tc:out should return the local date Created: 24/Nov/06  Updated: 23/Jan/13  Resolved: 07/Dec/06

Status: Closed
Project: Magnolia
Component/s: taglibs
Affects Version/s: 2.1.5, 3.0 Final
Fix Version/s: 3.0.1

Type: Improvement Priority: Minor
Reporter: Stojan Peshov Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

WinXP jdk1.5.0_09 tomcat5.5.20


Issue Links:
relation
is related to MAGNOLIA-1259 date (dialog, query, c:out) use the u... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

tc:out returns UTC formatted date which is not the local date/time.
using format() instead of formatUTC returns the exact date.

I've compared the dates in the dialogs with those displayed in the paragraph
and also tried to display the date with el: ${node.date.time}
In both cases the dates were 1 hour earlier (???) then the one from <tc:out..>
which is my TimeZone GMT+1, i guess

I could send you patch if you like



 Comments   
Comment by Philipp Bracher [ 28/Nov/06 ]

I will investigate into this bug. This could be a very critical one.

Scheduled for 3.0.1

Comment by Philipp Bracher [ 07/Dec/06 ]

I fixed it for 3.0.1 (the c:out tag) but here comes the explanation:

When you enter a date 2006-12-13 in a local with timezone +01:00 the following is happening:

  • 2.1: stores 2006-12-13 00:00 + 00:00 (using UTC ignoring the local timezone completely)
  • 3.0: stores 2006-12-12 23:00 + 00:00 (using the local timezone but transforming to UTC)

In future we should store 2006-12-13 00:00 + 01:00 but I didn't like to risk anything for 3.0.1

Comment by Philipp Bracher [ 07/Dec/06 ]

New bugreport for saving using the servers timezone: MAGNOLIA-1259

Comment by Philipp Bracher [ 07/Dec/06 ]

the conversion of 2.1 to 3.0 dates will be added to the migrator

Generated at Mon Feb 12 03:24:55 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.