Skip to content

Commit

Permalink
fix: env
Browse files Browse the repository at this point in the history
  • Loading branch information
izatop committed May 30, 2023
1 parent b4fc49b commit f7d5d78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions bin/publish
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh

set -a
export TIMEZONE=UTC LOCALE=en
export TIMEZONE=UTC LANG=en-US

yarn clean \
&& yarn lint \
Expand Down
2 changes: 0 additions & 2 deletions packages/util/src/Date/Locale.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {assert} from "../assert.js";
import {DateConfig} from "./interface.js";

function normalizeLocale(locale: string): string {
Expand Down Expand Up @@ -26,7 +25,6 @@ const config: DateConfig = getDefaultConfig();

export function setLocale(locale: string | string[]): void {
const [supported] = Intl.DateTimeFormat.supportedLocalesOf(locale);
assert(supported, `Incorrect locale information provided: ${locale}`);
config.locale = supported;
}

Expand Down

0 comments on commit f7d5d78

Please sign in to comment.