diff --git a/pygal/graph/time.py b/pygal/graph/time.py index 10b6ee9..abd8f25 100644 --- a/pygal/graph/time.py +++ b/pygal/graph/time.py @@ -113,7 +113,7 @@ class DateLine(DateTimeLine): def _x_format(self): """Return the value formatter for this graph""" def date_to_str(x): - d = date.fromtimestamp(x) + d = datetime.utcfromtimestamp(x).date() return self.x_value_formatter(d) return date_to_str