Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gnumeric gnumeric
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gnumericgnumeric
  • Issues
  • #371
Closed
Open
Issue created Dec 29, 2018 by Adrian Custer@acuster

format_match_datetime doesn't handle ISO 8601 (yyyy-mm-dd"T"hh:mm:ss"Z") dates

[NB This issue was originally isolated when attempting to chart these data, but the behaviour is apparently in the handling of the cell data itself. The original text is kept here, but a simpler demonstration is below in the comment on the date2unix(.) function.]

Given a column of dates in the ISO 8601 format (YYYY"-"MM"-"DD"T"hh"-"mm"-"ss(.sss)"Z") which is now supported by default in the cell formatting system, the charting sub-system should handle these as dates (internally can be converted to milliseconds since the epoch of 1970-01-01) not as instances.

  1. save this data set as example_data.csv:
TimeISO,Wkg
2018-12-14T15:30:04Z,34.72
2018-12-14T15:35:04Z,34.69
2018-12-14T15:40:04Z,34.73
2018-12-14T15:50:04Z,34.79
2018-12-14T15:55:04Z,35.41
2018-12-14T16:05:04Z,35.47
2018-12-14T16:10:04Z,35.48
2018-12-14T16:15:04Z,35.47
2018-12-14T16:25:04Z,35.50
2018-12-14T16:30:04Z,35.50
  1. open file in gnumeric 'gnumeric example_data.csv'

  2. import with only comma ',' as separator

==> gnumeric is open with data in first two columns and first eleven rows

  1. select column A, right-click on column header, select "Format 1 column" from context menu

  2. select 'Date' category, pick last entry [yyyy-mm-dd"T"hh:mm:ss"Z"], click "OK"

==> cells are formatted as date

  1. select columns 'A' and 'B'

  2. click chart icon

==> Chart dialog opens up with 'XY' data type (great) but with x-axis as 0:12 not as dates

I would expect the charting sub-system to recognize the cells as dates and organize the x-axis as a temporal axis.

cheers, ~adrian

Edited Dec 29, 2018 by Morten Welinder
Assignee
Assign to
Time tracking