Use consistent date output in serializer test (#13073)

Change-Id: I32e9377d5ef8a8e88a8126ece78f0b8750cfa2ea