toLocal property

DateTime Function(DateTime instant) get toLocal

The local time zone JavaScript formats instants in. Tests use UTC, as the reference's vitest config does.

Implementation

static DateTime Function(DateTime instant) get toLocal =>
    _scope?.timeZone?.toLocal ?? _toLocalDefault;
set toLocal (DateTime f(DateTime instant))

Implementation

static set toLocal(DateTime Function(DateTime instant) f) =>
    _toLocalDefault = f;