The documentation is unclear at https://github.com/Kotlin/kotlinx-datetime?tab=readme-ov-file#note-about-time-zones-in-js It does not indicate where the "initialization" code should go.