mobizt / Firebase-ESP-Client

[DEPRECATED]🔥Firebase Arduino Client Library for ESP8266, ESP32 and RP2040 Pico. The complete, fast, secured and reliable Firebase Arduino client library that supports RTDB, Cloud Firestore, Firebase and Google Cloud Storage, Cloud Messaging and Cloud Functions for Firebase.
MIT License
471 stars 100 forks source link

After document creation, the timestamp value changes. #520

Closed jepnoda closed 1 year ago

jepnoda commented 1 year ago

After document generation, the timestamp value in the Firestore database changes.

content.set("fields/myTimestamp/timestampValue", time); // RFC3339 UTC "Zulu" format

untitled

I'm in the UTC+8 time zone.

mobizt commented 1 year ago

That is because of your code instead.

jepnoda commented 1 year ago

That is because of your code instead.

Yes, sir, I have fixed this. After reading this, https://medium.easyread.co/understanding-about-rfc-3339-for-datetime-formatting-in-software-engineering-940aa5d5f68a