Don't graph 'from 1970-01-01'.
authorCMDR furrycat <elite@furrycat.net>
Mon, 25 Sep 2017 10:50:44 +0000 (11:50 +0100)
committerCMDR furrycat <elite@furrycat.net>
Mon, 25 Sep 2017 10:51:59 +0000 (11:51 +0100)
plugin/faction/faction.py

index 45b13e4..0993073 100644 (file)
@@ -1370,7 +1370,10 @@ class Faction(DBConnection):
     if len(system_ids):
       title += ' in {}'.format(systems[0])
     if start_date is not None:
-      title += ' from {}'.format(bot.iso8601(start_date)[:10])
+      if start_date > 0:
+        title += ' from {}'.format(bot.iso8601(start_date)[:10])
+      else:
+        title += ' since records began'
     if end_date is not None:
       title += ' to {}'.format(bot.iso8601(end_date)[:10])