kotlinx.serialization icon indicating copy to clipboard operation
kotlinx.serialization copied to clipboard

Specify time zone in example code to fix test instability across locales

Open timmc opened this issue 1 year ago • 2 comments

Addresses https://github.com/Kotlin/kotlinx.serialization/issues/2663

timmc avatar May 06 '24 14:05 timmc

The only thing I would change is to add the comment like

// Here we explicitly set time zone to UTC so output for this sample remains locale-independent. 
// Depending on your needs, you may have to remove this line.

sandwwraith avatar May 07 '24 09:05 sandwwraith

I've pushed up something very similar -- only difference is "adjust or remove".

timmc avatar May 09 '24 12:05 timmc