wsp-ms-core 1.1.19 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -787,6 +787,22 @@ var _Country = class _Country extends ValueObject {
|
|
|
787
787
|
url() {
|
|
788
788
|
return this._url;
|
|
789
789
|
}
|
|
790
|
+
getTimezone() {
|
|
791
|
+
const timezones = {
|
|
792
|
+
"URUGUAY": "America/Montevideo",
|
|
793
|
+
"ARGENTINA": "America/Argentina/Buenos_Aires",
|
|
794
|
+
"CHILE": "America/Santiago",
|
|
795
|
+
"BRASIL": "America/Sao_Paulo",
|
|
796
|
+
"COLOMBIA": "America/Bogota",
|
|
797
|
+
"PERU": "America/Lima",
|
|
798
|
+
"ECUADOR": "America/Guayaquil",
|
|
799
|
+
"PARAGUAY": "America/Asuncion",
|
|
800
|
+
"BOLIVIA": "America/La_Paz",
|
|
801
|
+
"VENEZUELA": "America/Caracas",
|
|
802
|
+
"USA": "America/New_York"
|
|
803
|
+
};
|
|
804
|
+
return timezones[this.value] || "utc";
|
|
805
|
+
}
|
|
790
806
|
static findCountryByAlpha2(alpha2) {
|
|
791
807
|
for (const [country, codes] of Object.entries(_Country.COUNTRIES)) {
|
|
792
808
|
if (codes.alpha2 === alpha2.toUpperCase()) {
|