Skip to content

firebase/database serverTimestamp() returns future time #9370

@mmyoji

Description

@mmyoji

Operating System

Windows 11

Environment (if applicable)

Chrome 142

Firebase SDK Version

12.4.0

Firebase SDK Product(s)

Database

Project Tooling

Vue app w/ Vite

Detailed Problem Description

We have two projects (dev/prd)

and serverTimestamp() records:

  • correct time in dev project
  • INCORRECT time in prd project (about 1 minute ahead)

.info/serverTimeOffset returns:

  • small value in dev project
  • large value (over 70000) in prd project

Is there a way to fix this large time offset? or shouldn't I trust firebase server timestamp?

Steps and code to reproduce issue

https://gist.github.com/mmyoji/9475c30446cf5779bd9fae1a5f2eb5a0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions