Skip to content

DateTime Objects are in wrong timezone #5

@slimndap

Description

@slimndap

All DateTime Objects are specifying a timezone (UTC), which is incorrect because the Ticketmatic API returns all times in local time.

For example, if you use Events::getlist() the salestartts field of events looks like this:

DateTime Object
(
  [date] => 2021-01-08 20:00:00.000000
  [timezone_type] => 3
  [timezone] => UTC
)

This particular theater however is based in Rotterdam (UTC +2) which means that all times are two hours off.

This can cause problems if you are importing the data for use on a website that is based in a different timezone.

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