The construction of a Spacetime instance seems to be affected by the system timezone, even when a specific timezone is supplied as the second parameter:
// system timezone set to Europe/London
spacetime('2022-10-30 00:00:00', 'America/New_York').epoch
// = 1667098800000 - wrong - should be: 1667102400000
spacetime('2022-10-30 00:00:00', 'America/New_York').format('iso-utc')
// = 2022-10-30T03:00:00.000Z - wrong - should be: 2022-10-30T04:00:00.000Z
This seems to being affected by the fact that in London there is a DST change on that day. But that should be irrelevant given that we've been explicit about what we mean in the constructor.
The construction of a Spacetime instance seems to be affected by the system timezone, even when a specific timezone is supplied as the second parameter:
This seems to being affected by the fact that in London there is a DST change on that day. But that should be irrelevant given that we've been explicit about what we mean in the constructor.