diff --git a/testing/test_framework/src/firebase_test_framework.cc b/testing/test_framework/src/firebase_test_framework.cc index 0298daf4b6..e6af0c156a 100644 --- a/testing/test_framework/src/firebase_test_framework.cc +++ b/testing/test_framework/src/firebase_test_framework.cc @@ -344,9 +344,9 @@ int64_t FirebaseTest::GetCurrentTimeInSecondsSinceEpoch() { #else // On desktop, just return the local time since SendHttpGetRequest is not // implemented. - int64_t time_in_microseconds = app_framework::GetCurrentTimeInMicroseconds(); + int64_t time_in_microseconds = app_framework::GetCurrentTimeInMicroseconds() / 1000000LL; LogDebug("Got local time: %I64d", time_in_microseconds); - return (time_in_microseconds / 1000000LL); + return (time_in_microseconds); #endif }