Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Orekit
Orekit
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 54
    • Issues 54
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 5
    • Merge Requests 5
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Orekit
  • OrekitOrekit
  • Issues
  • #637

Closed
Open
Opened Jan 28, 2020 by Piotr@Du

AbsoluteDate print method inconsistent with ISO ISO 8601

Hello, I am trying to write AbsoluteDate to file. I am using the “toString” method with various variations (defined zone, defined time scale) but cannot force it to write UTC date with “Z” at the end.

Here example:

AbsoluteDate date = new AbsoluteDate("2019-10-27T10:00:00.567Z",
                                         TimeScalesFactory.getUTC());
    System.out.println(date);
Output is: 2019-10-27T10:00:00.567

It is not complying with ISO 8601 norm, as :

If no UTC relation information is given with a time representation, the time is assumed to be in local time.

Is there a possibility to write the date correctly without converting to Java time?

Best regards, Piotr

Originally posted: https://forum.orekit.org/t/absolutedate-print-method-and-iso-8601/693

Edited Jan 28, 2020 by Piotr
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
11.0
Milestone
11.0
Assign milestone
Time tracking
None
Due date
None
Reference: orekit/orekit#637