Ticket #12197 (closed Bug: fixed)

Opened 3 years ago

Last modified 2 years ago

atct_topic_view: display event start/enddate with improper timezone

Reported by: ajung Owned by:
Priority: minor Milestone: 4.1
Component: General Version:
Keywords: Cc:

Description

See attached screenshots.

A Plone event from 15.05-16.05 (German site, GMT+2) is displayed within a collection with an offset of 2 hours.

The culprit is in formatCatalogMetadata.py:

16 if same_type(value, DateTime()):$ 17 return context.toLocalizedTime(value.ISO8601(), long_format = long_format)$

Instead of

value.ISO8601()

the code should use

value.timeTime()

in order to calculate the localized datetime string based on UTC time.

Attachments

event.png Download (20.8 KB) - added by ajung 3 years ago.
collection.png Download (27.1 KB) - added by ajung 3 years ago.

Change History

Changed 3 years ago by ajung

Changed 3 years ago by ajung

comment:1 Changed 3 years ago by kleist

  • Component changed from Unknown to Infrastructure

comment:2 Changed 2 years ago by mborch

  • Status changed from new to closed
  • Resolution set to fixed

Fix committed to trunk and 1.3-branch (r246302).

comment:3 Changed 22 months ago by davisagli

  • Component changed from Infrastructure to General
Note: See TracTickets for help on using tickets.