New Zealand display support
nvonahsen opened this issue · 4 comments
nvonahsen commented
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
spencermountain commented
good catch. fixed in 0.2.0
cheers
nvonahsen commented
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
in 05-metazones.js, maybe related?
spencermountain commented
thanks, i'll take a look at this next week.
spencermountain commented
this should be fixed now in 0.3.0
thanks