feat!: convert date to iso instead of number#21
Conversation
Since it's a more standard approach
Hi @rgomezcasas , On the other hand, I saw there was a breaking change to switch dates to numbers, and now this PR proposes another breaking change to switch to strings. Will you be merging it soon? Just asking to know whether I should wait or move forward while keeping an eye on it. Merci por vuestro trabajo! |
|
Thanks, @TheAlbertDev! Yep, merging it today. 🙌 The reason is that Date is an object, not a scalar value, so you can't have it serialized in JSON or Avro. The only way is to transform it to a Unix timestamp (number) or some string standard (like the ISO one). We started with the numeric approach, but we realized that we prefer the ISO one since it's easier for humans to read. |
Since it's a more standard approach