Fix ExpressionType.Weekday being off by 1

This commit is contained in:
Haselnussbomber 2025-09-22 23:29:40 +02:00
parent 0b3a5a713e
commit 9b0c275b8b
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1

View file

@ -2061,7 +2061,7 @@ internal class SeStringEvaluator : IServiceType, ISeStringEvaluator
value = (uint)MacroDecoder.GetMacroTime()->tm_mday;
return true;
case ExpressionType.Weekday:
value = (uint)MacroDecoder.GetMacroTime()->tm_wday;
value = (uint)MacroDecoder.GetMacroTime()->tm_wday + 1;
return true;
case ExpressionType.Month:
value = (uint)MacroDecoder.GetMacroTime()->tm_mon + 1;