Skip to content

Commit d7a0b64

Browse files
javier-godoypaodb
authored andcommitted
fix: correct JavaScript Date to string transformation
Close #100
1 parent 7bd7f50 commit d7a0b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/META-INF/frontend/fc-date-picker/fc-date-picker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class FcDatePicker extends DatePicker {
9797
};
9898

9999
const _getStyle = month => {
100-
const tostr = date => date.toISOString().substr(0,7);
100+
const tostr = date => this._formatISO(date).substr(0,7);
101101
const add = (date, delta) => new Date(date.getFullYear(), date.getMonth()+delta, 1);
102102

103103
const key = tostr(month);

0 commit comments

Comments
 (0)