From 458dd42eb8b4ec738c0621740c4251797943c63f Mon Sep 17 00:00:00 2001 From: Mark Suckerberg Date: Fri, 5 Jan 2024 10:25:12 -0600 Subject: [PATCH] Fix date calculation (again) (#2624) ## About The Pull Request My math was all over the place. This makes it so that there's only one day in year day and months don't start on the second. In my defense it's kinda hard to test this. ## Why It's Good For The Game Time consistency ## Changelog :cl: fix: IC/sector months now actually start on the first and there's only one year day /:cl: --- code/__HELPERS/time.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/__HELPERS/time.dm b/code/__HELPERS/time.dm index cfd9da96cee1..cef23857bc7a 100644 --- a/code/__HELPERS/time.dm +++ b/code/__HELPERS/time.dm @@ -22,7 +22,7 @@ //International Fixed Calendar format (https://en.wikipedia.org/wiki/International_Fixed_Calendar) var/days_since = round(realtime / (24 HOURS)) var/year = round(days_since / 365) + 481 - var/day_of_year = days_since % 365 + 1 + var/day_of_year = days_since % 365 var/month = round(day_of_year / 28) var/day_of_month = day_of_year % 28 + 1