luxon timezones

Timezones

Luxon supports time zones. There’s a whole big section about it .

But briefly, you can create DateTimes in specific zones and change their zones

DateTime.fromObject({zone: 'America/Los_Angeles'}) // now, but expressed in LA's local time
DateTime.local().setZone('America/Los_Angeles') // same

Luxon also supports UTC directly:

DateTime.utc(2017, 5, 15);
DateTime.utc();
DateTime.local().toUTC();
DateTime.utc().toLocal();