guard let stamp = i.document.get("date") as? Timestamp else {
return
}
let date = stamp.dateValue()
I am trying to access the Timestamp value from Firebase Firestore to display the time and date in my app. when trying to get the date and time from the above code, the time zone is different from my local region. How can I change the timezone into UTC+5 the same which shows in my firestore?
Output that I am getting: https://i.stack.imgur.com/i7cpB.png
Timestamp stored in Firestore: https://i.stack.imgur.com/OPujH.png