Skip to content

datastore.Datetime.now seems broken #6

Closed

Description

@jgeewax

When running this method locally (on a Mac) it returns 14th of January 1970 (1970-01-14T10:49:17.451+01:00)

I suspect that the problem is that it is implemented as:

public static DateTime now() {
  return new DateTime(System.nanoTime() / 1000L);  // nanoTime() may be the culprit?
}

Activity

  1. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    api: datastoreIssues related to the Datastore API.
    on Feb 11, 2015
  2. added this to the milestone on Feb 11, 2015
  3. self-assigned this
    on Feb 11, 2015
  4. added a commit that references this issue on Feb 19, 2015
    8eba6b4
  5. added 2 commits that reference this issue on Jul 1, 2015
    0d44125
    1c62eb0
  6. added a commit that references this issue on Mar 29, 2016
  7. added a commit that references this issue on Feb 24, 2026
  8. added a commit that references this issue on Mar 12, 2026
  9. added a commit that references this issue on Jul 13, 2026
    378ea57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

🚨 criticalP0 critical issue. Requires immediate fixapi: datastoreIssues related to the Datastore API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions