applescript date formatting

I am running a filemaker 16 database in os 11.1



The database depends heavily on AppleScript to pull information out and write it to html files.  I haven’t run it for some time but I am having trouble with getting the right year from a Filemaker date field



This used to work (simplifying the script to highlight the issue)



tell application "FileMaker Pro Advanced"

set x to cell "change Date" of current record

end tell

set y to date x

return {day of y as text, items 1 thru 3 of (month of y as text) as text, year of y as text}



But now it doesn’t.  The date is correctly pulled out of Filemaker as “2016-12-13” but the script returns day as 12 instead of 13, the month is right, but the year returns “12180” - I swear this used to work but something has changed.  Any ideas?
applescript date formatting
 
 
Q