PDA

View Full Version : Calendar module issues



ianricks58
September 11th, 2017, 03:11
I created a custom calendar using the standard FG calendar mod. But for some reason, each month starts on the same day of the week on my custom calendar. I looked in the .xml and I don't see any difference between the Gregorian calendar code and mine in the file. Is there something else I need to do to get it to work properly?

Andraax
September 11th, 2017, 03:27
If your calendar is non-Gregorian, you need to write a LUA extension to provide correct starting days for months (and optional adjustments for leap years if any).

ianricks58
October 18th, 2017, 21:15
If the starting day for the next month takes place on the next day of the week, do I need to write an LUA extension?

Andraax
October 18th, 2017, 23:57
Not if your months are all exact multiples of the week length (ie, each month starts on the same day of the week). Or if you use a Gregorian calendar (those functions are built-in).