mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
[firestore] Use ms instead of ISOString for date conversion
This commit is contained in:
@@ -67,7 +67,7 @@ const buildTypeMap = (value: any): any => {
|
||||
};
|
||||
} else if (value instanceof Date) {
|
||||
typeMap.type = 'date';
|
||||
typeMap.value = value.toISOString();
|
||||
typeMap.value = value.getTime();
|
||||
} else {
|
||||
typeMap.type = 'object';
|
||||
typeMap.value = buildNativeMap(value);
|
||||
|
||||
Reference in New Issue
Block a user