Open ab9rf opened 1 year ago
the math in list-agreements.get_petition_age()
is definitely wrong. This section in particular is not going to work when the current year is at an earlier time than the agreement year:
The Time
class in petitions.lua
has more comprehensive and correct handling for this kind of date math - ideally that Time class could be shared/re-used by other scripts, such as list-agreements
.
Will work on this.
Do we have a save I can play with? I have no agreements in any of mine.
edit got one.
shortly before the start of a new year (205-12-27):
right after the start of a new year (206-1-1):