gemini.git

going-flying.com gemini git repository

summary

tree

log

refs

6890e192c54670e5233ed5467d89402a2b227172 - Matthew Ernisse - 1614622683

you get the first day too

view tree

view raw

diff --git a/cgi-bin/date b/cgi-bin/date
index b9aeb48..c2cef71 100755
--- a/cgi-bin/date
+++ b/cgi-bin/date
@@ -68,7 +68,7 @@ def prettySinceEpoch(y, m, d, month_name):
 	dow = now.strftime('%a')
 	time = now.strftime('%H:%M:%S %Z')
 	days = now - epoch
-	days = days.days
+	days = days.days + 1
 
 	return f'{dow} {month_name} {days} {time} {y}'