Issue Bug Closed

#92962Native time in record list is displayed in local timezone

Imko Schumacher 11/30/20, 19:10 updated 10/04/22, 14:12

Description

A native time in the record list title is displayed in the current timezone.
However we expect no timezone conversion on native time.

Prerequisites

  • server / php timezone !== UTC (e.g. Asia/Shanghai)
  • tested with cc85324731 [master], 10.4, (probably also 9.5)

TCA configuration:

'ctrl' => [
    'label' => 'mytime',
],
'columns' => [
    'mytime' => [
        'label' => 'mytime',
        'config' => [
            'type' => 'input',
            'renderType' => 'inputDateTime',
            'dbType' => 'time',
            'eval' => 'time,null',
        ],
    ],
]

Steps to reproduce

  1. Create a record with 01:03
  2. View records in the list module

Actual value

  • 17:03

Expected value

  • 01:03
  • (no timezone conversion should happen)

Reviews 2