In later Delphis these settings moved to a TFormatsettings record called "FormatSettings". FPC had such construct for years, and deprecated the old ones (just like recent Delphi versions).
This is dayofTHEweek() vs dayofweek() that have differing definitions of what the first day of the week is.
There was a note of this in the dayofweek help, but I now also added a reference from the help topic for short and longdaynames that will hopefully make this clearer (will be visible in the documentation of the next release)