mirror of
https://github.com/discourse/discourse.git
synced 2025-04-28 05:24:36 +08:00
FIX: keep date object (#9292)
This commit is contained in:
parent
1b09a0cd17
commit
eda8f319a2
@ -32,7 +32,6 @@ export default Component.extend({
|
|||||||
|
|
||||||
onChangeDate(date) {
|
onChangeDate(date) {
|
||||||
if (this.onChange) {
|
if (this.onChange) {
|
||||||
date = new Date(this.date);
|
|
||||||
const year = date.getFullYear();
|
const year = date.getFullYear();
|
||||||
const month = date.getMonth();
|
const month = date.getMonth();
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user