Update common.js

fix dateFormat issues.