envoc-form 2.0.1 → 2.0.2
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.
@@ -96,7 +96,7 @@ export { DatePickerInput as default };
|
|
96
96
|
export function convertToTimeZoneInsensitiveISOString(date) {
|
97
97
|
var year = new Intl.DateTimeFormat('en', {
|
98
98
|
year: 'numeric'
|
99
|
-
}).format(date);
|
99
|
+
}).format(date).padStart(4, '0');
|
100
100
|
var month = new Intl.DateTimeFormat('en', {
|
101
101
|
month: '2-digit'
|
102
102
|
}).format(date);
|
@@ -116,7 +116,7 @@ exports["default"] = DatePickerInput;
|
|
116
116
|
function convertToTimeZoneInsensitiveISOString(date) {
|
117
117
|
var year = new Intl.DateTimeFormat('en', {
|
118
118
|
year: 'numeric'
|
119
|
-
}).format(date);
|
119
|
+
}).format(date).padStart(4, '0');
|
120
120
|
var month = new Intl.DateTimeFormat('en', {
|
121
121
|
month: '2-digit'
|
122
122
|
}).format(date);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "envoc-form",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.2",
|
4
4
|
"description": "Envoc form components",
|
5
5
|
"keywords": [
|
6
6
|
"react-component",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"axios": "^0.21.1",
|
38
38
|
"classnames": "^2.3.1",
|
39
39
|
"date-fns": "^2.22.1",
|
40
|
-
"envoc-request": "^2.0.
|
40
|
+
"envoc-request": "^2.0.2",
|
41
41
|
"lru-cache": "^6.0.0",
|
42
42
|
"prop-types": "^15.7.2",
|
43
43
|
"react-date-picker": "^8.2.0",
|
@@ -49,7 +49,9 @@ export default class DatePickerInput extends React.Component {
|
|
49
49
|
}
|
50
50
|
|
51
51
|
export function convertToTimeZoneInsensitiveISOString(date) {
|
52
|
-
const year = new Intl.DateTimeFormat('en', { year: 'numeric' })
|
52
|
+
const year = new Intl.DateTimeFormat('en', { year: 'numeric' })
|
53
|
+
.format(date)
|
54
|
+
.padStart(4, '0');
|
53
55
|
const month = new Intl.DateTimeFormat('en', { month: '2-digit' }).format(
|
54
56
|
date
|
55
57
|
);
|