Open
Description
Describe the bug
The times displayed on the transactions list page under the Date / Time
column is in store's timezone (see this line). This is not clearly stated.
A possible solution is to add the timezone in the column header, eg Date / Time (UTC+3)
, either by:
- Passing
wp_timezone_string()
from PHP viawcpaySettings
and render it, or - Just in Javascript, call
dateI18n()
:
dateI18n('TP') // Will display UTC+01:00
To Reproduce
- Set blog timezone to be different from browser's timezone. wp-admin > Settings > General > Timezone.
- Buy something to create a transaction.
- See the time of transaction is displayed in store's timezone.
Actual behavior
It's not clear which timezone the transaction time is displayed in. Intuitively, user might think it's in their local / browser's timezone but actually it is not.
Expected behavior
It's clear to user which timezone the transaction time is displayed in.