keep as it was originally for now
This commit is contained in:
+3
-1
@@ -118,7 +118,9 @@ exports[`better eslint`] = {
|
||||
[0, 0, 0, "Do not use any type assertions.", "5"],
|
||||
[0, 0, 0, "Do not use any type assertions.", "6"],
|
||||
[0, 0, 0, "Do not use any type assertions.", "7"],
|
||||
[0, 0, 0, "Do not use any type assertions.", "8"]
|
||||
[0, 0, 0, "Do not use any type assertions.", "8"],
|
||||
[0, 0, 0, "Do not use any type assertions.", "9"],
|
||||
[0, 0, 0, "Do not use any type assertions.", "10"]
|
||||
],
|
||||
"packages/grafana-data/src/datetime/parser.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"],
|
||||
|
||||
@@ -133,7 +133,7 @@ export const dateTimeForTimeZone = (
|
||||
if (timezone && timezone !== 'browser') {
|
||||
// TODO fix types here
|
||||
//@ts-ignore
|
||||
return moment.tz(dateTimeAsMoment(input), formatInput, timezone);
|
||||
return moment.tz(input as MomentInput, formatInput, timezone) as DateTime;
|
||||
}
|
||||
|
||||
return dateTime(input, formatInput);
|
||||
|
||||
Reference in New Issue
Block a user