inter icon indicating copy to clipboard operation
inter copied to clipboard

Timezone America/Ciudad_Juarez not found in moment-timezone

Open adhi14058 opened this issue 3 years ago • 5 comments

Zoneinfo.js var val = Object.values(moment.tz._zones).some(function (x) { return typeof x !== 'string' && x.name === timeZoneId ;});

apparently, for this timeZoneId, we are getting different names, we are getting the following error. Error: Timezone America/Ciudad_Juarez not found in moment-timezone.

adhi14058 avatar Dec 19 '22 14:12 adhi14058

How exactly are you reproducing this?

papandreou avatar Dec 19 '22 15:12 papandreou

Ubuntu version: Ubuntu 22.04.1 LTS

this occours when we run the following command


	./node_modules/inter/bin/buildInter \
	 --type browser \
	 --territories \
	 --countries \
	 --regions \
	 --currencies \
	 --dateformats \
	 --daynames \
	 --pluralrules \
	 --numbers \
	 --numbersystems latn \
	 --locales ${COMMON_TARGET_LOCALES} \
	 -o $@

COMMON_TARGET_LOCALES = da,de,en_gb,en_us,es,fi,fr,it,nb,nl,pt,sv

adhi14058 avatar Dec 20 '22 11:12 adhi14058

Hmm, that seems to work fine for me, although I'm running Ubuntu 22.10.

What does your /usr/share/zoneinfo/zone.tab look like?

papandreou avatar Dec 21 '22 23:12 papandreou

https://cl1p.net/zonetab

Kindly refer the above link. it has the contents of zone.tab

adhi14058 avatar Dec 22 '22 06:12 adhi14058

Hmm, I tried overwriting my own /usr/share/zoneinfo/zone.tab with that, but I still cannot reproduce the error :thinking:

papandreou avatar Dec 22 '22 19:12 papandreou