mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
Fix 0 year issue
This commit is contained in:
parent
35fe7f0e7a
commit
e590bb4a19
2 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue