unsoluble / smalltime

A small FoundryVTT module for displaying and controlling the current time of day.
MIT License
25 stars 16 forks source link

World Clock and SmallTime clocks not staying in sync with Simple Calendar clock. #202

Closed poindexter1985 closed 5 months ago

poindexter1985 commented 5 months ago

I'm running a Pathfinder 2e world with Simple Calendar and Small Time, but I just cannot get the Simple Calendar clock to sync up with the system/Small Time clock. It's stuck with a discrepancy of 23m 51s that I can't get rid of.

I'm playing with the PF2e system, but I do not use the default Golarian campaign setting and calendar.

I have two calendars defined - the in-world calendar, and a Gregorian-like calendar that's present just to allow easy conversion to a more familiar calendar system (that is, so that everyone can easily see that "1st of Stone" is the same time in the year as "8th of October" and thus understand what time of year it is).

Small Time is configured to use Simple Calendar as its Calendar Provider. In Simple Calendar, the "Pathfinder 2E: World Time Sync" option is OFF (because enabling it would force my calendars to use leap year and other settings that are inappropriate). The Sync/Time Changes Across Calendars option is ON (because I have multiple calendars that need to be kept in sync)

The screenshot shows the problem. When the world clock and SmallTime clocks show 12:00:00 NOON, Simple Calendar shows 12:23:51. I don't care that the dates are funky on the World Clock (as I don't use that calendar).

If I advance the Simple Calendar time to a specific point (such as 18:00:00), then the SmallTime and World Clock will still be behind by 23:51 (they show 17:36:09 when Simple Calendar shows 18:00:00).

If I temporarily turn off Game World Time Integration in Simple Calendar (set it to none), then I can independently set the clocks to make them match. If I then set Game World Time Integration back to Mixed, then it immediately sets the World Clock and SmallTime clocks back by 00:23:51 again.

What am I doing wrong here? How do I get these clocks to show the same time, and then remain in sync with continued time advancements?

image

unsoluble commented 5 months ago

Since SmallTime is keeping in sync with the PF2e clock, I don't think this is a SmallTime issue.

poindexter1985 commented 5 months ago

Since SmallTime is keeping in sync with the PF2e clock, I don't think this is a SmallTime issue.

You are most likely correct. Vigorator is looking into the possibility of a bug in the time syncing code in Simple Calendar.