fix incompatibility: Date.toLocaleFormat() is mozilla-specific