NSDate *today = [NSDate dateWithTimeIntervalSince1970:(NSInteger)[FIRServerValue timestamp]/1000];
I am use above code to convert [FIRServerValue timestamp]
into NSDate
in my ios app. But I could't get the expected result. It returns 1970-03-13 11:37:47 +0000
. So how to get current server time using [FIRServerValue timestamp]
.