Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 852
    • Issues 852
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 42
    • Merge requests 42
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !662

GDate test: Disable Julian epoch test on Windows

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed LRN requested to merge lrn/glib:cherry-pick-b009984e into master Feb 13, 2019
  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 1

Windows uses FILETIME, which starts counting from 1st Jan of year 1601 and, unlike time_t, can't be negative, so Windows simply has no way to do timestamp-math for dates before then. SYSTEMTIME (an equivalent of struct tm) can, obviously, represent almost arbitrary date starting from 1st Jan of year 0 (it's unsigned...), but GetDateFormatW() converts it to FILETIME at some point in its implementation, and fails. Unless the whole strftime() implementation of GDate is replaced by something that doesn't rely on WinAPI, this part of the test will never pass.

(cherry picked from commit b009984ea4993deb0047fa873bdd01d97b059ca7)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: cherry-pick-b009984e