Fix a call to toLocaleDateString()

Apparently the spec for the function changed, so let's not rely on it anymore.