You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
similar to Fantasy Calendar, adding a check box to allow year 0 to exisit
possible best guess would be on years.store.ts how lines 136 and 137 are
if(original==1)return0;letyear=original>=1 ? original : original+1;
and to handle different scenarios:
If original is greater than 1, set year to original (no change).
If original is less than 0, set year to original (no change).
If original is 0, set year to 0 explicitly.
This way, the year 0 remains unchanged, and other values are handled appropriately:
For original = -1: year remains -1.
For original = 0: year is explicitly set to 0.
For original = 2: year remains 2.
if(original===1)return0;letyear;// Handle year transformationif(original>1){year=original;}elseif(original<0){year=original;}else{year=0;// Explicitly handle year 0}
The text was updated successfully, but these errors were encountered:
ReconVirus
changed the title
🧩 Support year 0 (again)
🧩 Support year 0 again (Possible Solution)
Nov 26, 2024
Scope
Support 0 as a actual year again similar to how it was originally supported for a brief time parior to v1.2.2
This is something Fantasy Calendar currently supports, and the original plugin under that name and was supported in calendarium for a brief time
Discovery
Allowing years to be displays as -1, 0, 1 , the current way the code is handing it is its skipping 0
Validate
3488dbd
Possible Solution
similar to Fantasy Calendar, adding a check box to allow year 0 to exisit

possible best guess would be on
years.store.ts
how lines 136 and 137 areand to handle different scenarios:
If original is greater than 1
, set year to original (no change).If original is less than 0
, set year to original (no change).If original is 0
, set year to 0 explicitly.This way, the year 0 remains unchanged, and other values are handled appropriately:
For original = -1:
year remains -1.For original = 0:
year is explicitly set to 0.For original = 2:
year remains 2.The text was updated successfully, but these errors were encountered: