We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f2d612 commit de62bfbCopy full SHA for de62bfb
packages/firebase-database/index.ios.ts
@@ -41,7 +41,7 @@ export function serialize(data: any): any {
41
42
case 'object': {
43
if (data instanceof Date) {
44
- return NSDate.dateWithTimeIntervalSince1970(data.getTime() / 1000);
+ return data.toString();
45
}
46
if (!data) {
47
return NSNull.new();
@@ -396,7 +396,7 @@ export class Reference extends Query implements IReference {
396
const pushRef = Reference.fromNative(id);
397
let promise;
398
if (value) {
399
- promise = thennablePushRef.set(value, onComplete).then(() => pushRef);
+ promise = thennablePushRef.set(serialize(value), onComplete).then(() => pushRef);
400
} else {
401
promise = Promise.resolve(pushRef);
402
0 commit comments