Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

date filter does not respect timezone parameter #2926

Closed
rynpsc opened this issue May 28, 2018 · 0 comments
Closed

date filter does not respect timezone parameter #2926

rynpsc opened this issue May 28, 2018 · 0 comments

Comments

@rynpsc
Copy link
Contributor

rynpsc commented May 28, 2018

Description

The timezone parameter is ignored when using the date filter.

For the following two examples:

  1. {{ '1527492534'|date('l d M Y H:i:s e', 'Europe/London') }}
  2. {{ '1527492534'|date('l d M Y H:i:s e', 'America/New_York') }}

The return values should be as follows:

  1. Monday 28 May 2018 08:28:54 Europe/London
  2. Monday 28 May 2018 03:28:54 America/New_York

However both tags output "Monday 28 May 2018 08:28:54 Europe/London".

Additional info

  • Craft version: Craft Solo 3.0.9
  • PHP version: 7.2.4
  • Database driver & version: MySQL 5.7.21
  • Plugins & versions:
@rynpsc rynpsc changed the title datetime filter does not respect timezone parameter date filter does not respect timezone parameter Jun 1, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant