Index: packages/charted/lib/locale/format/time_format.dart |
diff --git a/packages/charted/lib/locale/format/time_format.dart b/packages/charted/lib/locale/format/time_format.dart |
index d1b0e6b0aed6d4918a502111078e479fda7b803e..89ab88ce78e814d2879388a79d3106fe711f0751 100644 |
--- a/packages/charted/lib/locale/format/time_format.dart |
+++ b/packages/charted/lib/locale/format/time_format.dart |
@@ -44,7 +44,7 @@ class TimeFormat { |
while (++i < n) formats[i][0] = _getInstance(formats[i][0] as String); |
return (var date) { |
if (date is num) { |
- date = new DateTime.fromMillisecondsSinceEpoch(date.toInt()); |
+ date = new DateTime.fromMillisecondsSinceEpoch((date as num).toInt()); |
} |
var i = 0, f = formats[i]; |
while (f.length < 2 || f[1](date) == false) { |