getServerTime returns an object with an invalid date #910
Labels
help: needs-tests
Needs a test case adding to the project tests.
help: needs-triage
Issue needs additional investigation/triaging.
platform: android
platform: ios
plugin: database
Firebase Realtime Database
Milestone
Issue
For iOS when I request a server time with
getServerTime
it return an object with anInvalid Date
. When I callgetServerTime
a second time it returns a correct date. The following code shows it:console.log(typeof firebase.database().getServerTime() // shows: Invalid Date) console.log(typeof firebase.database().getServerTime()) // shows: Mon Mar 26 2018 18:01:53 GMT+0200 (CEST)
This is how it shows when tested on a iOS device, with an Android device it always return the
Invalid Date
object.The
Invalid Date
object is probably generated by the Chrome console because it can't handle the object.Environment
Both
macOS Sierra: 10.12.6 (16G1212)
iOS build has a minimum requirement of iOS 10
Android build settings
react-native command line
"react-native": "0.51"
"react-native-firebase": "^3.3.1"
iOS libraries
Android libraries
The text was updated successfully, but these errors were encountered: