mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-05-28 20:40:17 +02:00
Fix 0 year issue
This commit is contained in:
parent
35fe7f0e7a
commit
e590bb4a19
@ -150,6 +150,7 @@ fun OffsetDateTime.toHumanNowDiffString(abs: Boolean = false) : String {
|
||||
if(value >= secondsInYear) {
|
||||
value = getNowDiffYears();
|
||||
if(abs) value = abs(value);
|
||||
value = Math.max(1, value);
|
||||
unit = "year";
|
||||
}
|
||||
else if(value >= secondsInMonth) {
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 83cccf8ba5ae87d8a437775d9b341a9e3be07e74
|
||||
Subproject commit e0a06b109e55c35fe2da89785c8fd27ddecdb2f3
|
Loading…
x
Reference in New Issue
Block a user