]> git.netwichtig.de Git - user/henk/code/inspircd.git/commit
Fix years being offset from weeks (#1678).
authorMatt Schatz <genius3000@g3k.solutions>
Thu, 4 Jul 2019 16:30:23 +0000 (10:30 -0600)
committerPeter Powell <petpow@saberuk.com>
Thu, 4 Jul 2019 16:30:23 +0000 (17:30 +0100)
commit3b8246ab07faa673bf4e11b8aa927a9d724aa7d3
tree793d60dcfabb6e6d7e624a67868c8b4c2457cfa2
parentbdbedfe2c0e87e970de790d51557e69b8a051718
Fix years being offset from weeks (#1678).

Currently a duration of 52w will return a blank string.
When I added weeks to the calculations, I failed to update
the number of seconds to a year. As 365 days and 52 weeks
aren't the same, but the calculation needs to be consistent.
src/helperfuncs.cpp