Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2175)

Unified Diff: packages/charted/lib/locale/format/time_format.dart

Issue 2213693002: Updated charted DEP to 0.4.X (Closed) Base URL: https://github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {
« no previous file with comments | « packages/charted/lib/locale/format/number_format.dart ('k') | packages/charted/lib/selection/selection.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698