Skip to content

All event times treated as UTC even though timezone set differently #133

@steveparks

Description

@steveparks

Hello folks,

Thanks for a very useful addon, I'm just configuring it now.

I have one issue to figure out before I go live... and I'm sorry to report that it's (of course) related to timezones !

In my blueprint I have imported your events:event fieldset, including the timezone field.

My server time is set to UTC.

On my test event though, I'm setting the timezone to Europe/London, which is currently on BST (+1 hour from UTC).

I set the start time of the event to 10:00.

If I then display the Start Time in the view with the timezone: {{ start_time | format:'H:i T' }} it displays "10:00 UTC"

So the time field itself isn't reflecting the timezone, and is just (probably) using the server timezone.

If I print out the timezone field to the view, via the {{ timezone | raw }} variable, it shows as "Europe/London"

After a tip from Ryan in Discord I looked at the Statamic Timezone Modifier, but that would actually change the time displayed too, so it would display as "11:00 BST"

I wonder if this issue I'm having could be related to #121 - or am I simply doing something wrong, or misunderstanding the whole thing?

Thanks for any help
Steve

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions