From ba1723188ac3fc5ad456f8180378187c624c635e Mon Sep 17 00:00:00 2001 From: Robin Genz Date: Wed, 14 Feb 2024 13:23:55 +0100 Subject: [PATCH 1/2] wip: ios --- packages/firestore/ios/Plugin/FirebaseFirestorePlugin.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/firestore/ios/Plugin/FirebaseFirestorePlugin.swift b/packages/firestore/ios/Plugin/FirebaseFirestorePlugin.swift index 08ebea6e..5e2df76f 100644 --- a/packages/firestore/ios/Plugin/FirebaseFirestorePlugin.swift +++ b/packages/firestore/ios/Plugin/FirebaseFirestorePlugin.swift @@ -15,6 +15,7 @@ public class FirebaseFirestorePlugin: CAPPlugin { private var pluginCallMap: [String: CAPPluginCall] = [:] override public func load() { + self.shouldStringifyDatesInCalls = false self.implementation = FirebaseFirestore(plugin: self) } From 8d7355148ce21be89c7e67de3f3a2a9b04f5c491 Mon Sep 17 00:00:00 2001 From: Robin Genz Date: Wed, 14 Feb 2024 13:53:58 +0100 Subject: [PATCH 2/2] wip: ios --- packages/firestore/ios/Plugin/FirebaseFirestoreHelper.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/firestore/ios/Plugin/FirebaseFirestoreHelper.swift b/packages/firestore/ios/Plugin/FirebaseFirestoreHelper.swift index cf94c9ab..9cf04cde 100644 --- a/packages/firestore/ios/Plugin/FirebaseFirestoreHelper.swift +++ b/packages/firestore/ios/Plugin/FirebaseFirestoreHelper.swift @@ -64,6 +64,9 @@ public class FirebaseFirestoreHelper { guard let value = value else { return nil } + if let value = value as? Timestamp { + return value.dateValue() + } guard let value = JSTypes.coerceDictionaryToJSObject(["key": value]) as JSObject? else { return nil }