Calendar instance should be formatted before being set in the errorlog