spencermountain/timezone-soft

New Zealand display support

nvonahsen opened this issue · 4 comments

Hey, been trying to use this on project where NZ is one of our major zones.
I noticed that the display function seems to return undefined for both the daylight and standard codes on the Pacific/Auckland timezone. Would expect these to be NZDT and NZST respectively.

Wondering if this will be supported in the near future?

Cheers and thanks for the library

good catch. fixed in 0.2.0
cheers

Just updated to 0.2.0 and still getting the issue

import stInformalTz from 'spacetime-informal';
const tzCodes = stInformalTz.display('Pacific/Auckland')
console.log(tzCodes)

Gives: {iana: "Pacific/Auckland", standard: undefined, daylight: undefined}

In a quick skim of the library code i saw commented out
image
in 05-metazones.js, maybe related?

thanks, i'll take a look at this next week.

this should be fixed now in 0.3.0
thanks