baseui 0.0.0-next-be0853a → 0.0.0-next-e650d03
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.
|
@@ -32,7 +32,7 @@ class TimezonePicker extends React.Component {
|
|
|
32
32
|
try {
|
|
33
33
|
const offset = getTimezoneOffset(zoneName, compareDate) / 3_600_000;
|
|
34
34
|
const offsetFormatted = `${offset >= 0 ? '+' : '-'}${Math.abs(offset)}`;
|
|
35
|
-
let label = `(GMT${offsetFormatted}) ${zoneName.replace(
|
|
35
|
+
let label = `(GMT${offsetFormatted}) ${zoneName.replace(/_/g, ' ')}`;
|
|
36
36
|
|
|
37
37
|
if (this.props.includeAbbreviations) {
|
|
38
38
|
const abbreviation = format(compareDate, 'zzz', {
|
|
@@ -86,7 +86,7 @@ var TimezonePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
86
86
|
try {
|
|
87
87
|
var offset = getTimezoneOffset(zoneName, compareDate) / 3600000;
|
|
88
88
|
var offsetFormatted = "".concat(offset >= 0 ? '+' : '-').concat(Math.abs(offset));
|
|
89
|
-
var label = "(GMT".concat(offsetFormatted, ") ").concat(zoneName.replace(
|
|
89
|
+
var label = "(GMT".concat(offsetFormatted, ") ").concat(zoneName.replace(/_/g, ' '));
|
|
90
90
|
|
|
91
91
|
if (_this.props.includeAbbreviations) {
|
|
92
92
|
var abbreviation = format(compareDate, 'zzz', {
|
package/package.json
CHANGED
|
@@ -95,7 +95,7 @@ var TimezonePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
95
95
|
try {
|
|
96
96
|
var offset = (0, _dateFnsTz.getTimezoneOffset)(zoneName, compareDate) / 3600000;
|
|
97
97
|
var offsetFormatted = "".concat(offset >= 0 ? '+' : '-').concat(Math.abs(offset));
|
|
98
|
-
var label = "(GMT".concat(offsetFormatted, ") ").concat(zoneName.replace(
|
|
98
|
+
var label = "(GMT".concat(offsetFormatted, ") ").concat(zoneName.replace(/_/g, ' '));
|
|
99
99
|
|
|
100
100
|
if (_this.props.includeAbbreviations) {
|
|
101
101
|
var abbreviation = (0, _dateFnsTz.format)(compareDate, 'zzz', {
|
|
@@ -64,7 +64,7 @@ class TimezonePicker extends React.Component<
|
|
|
64
64
|
const offset = getTimezoneOffset(zoneName, compareDate) / 3_600_000;
|
|
65
65
|
|
|
66
66
|
const offsetFormatted = `${offset >= 0 ? '+' : '-'}${Math.abs(offset)}`;
|
|
67
|
-
let label = `(GMT${offsetFormatted}) ${zoneName.replace(
|
|
67
|
+
let label = `(GMT${offsetFormatted}) ${zoneName.replace(/_/g, ' ')}`;
|
|
68
68
|
|
|
69
69
|
if (this.props.includeAbbreviations) {
|
|
70
70
|
const abbreviation = format(compareDate, 'zzz', {timeZone: zoneName});
|