Update core.js

fix for add weekday when the initial date is sat