Skip to content
Snippets Groups Projects
Commit 877988f4 authored by Benyounes Moumni's avatar Benyounes Moumni
Browse files

Preseve timezone when converting Date to moment

parent 46162d7d
Branches
Tags
No related merge requests found
......@@ -11,6 +11,6 @@ export function parseTimestamp(value, unit) {
// workaround for https://github.com/metabase/metabase/issues/1992
return moment().year(value).startOf("year");
} else {
return moment.utc(value);
return moment(value);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment