Skip to content

Slot collection_date does not require value to indicate timezone #2326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
eecavanna opened this issue Jan 27, 2025 · 0 comments
Open

Slot collection_date does not require value to indicate timezone #2326

eecavanna opened this issue Jan 27, 2025 · 0 comments
Labels
question Further information is requested

Comments

@eecavanna
Copy link
Collaborator

eecavanna commented Jan 27, 2025

The https://microbiomedata.github.io/nmdc-schema/collection_date/ slot is defined like this:

collection_date:
annotations:
expected_value:
tag: expected_value
value: date and time
description: 'The time of sampling, either as an instance (single point in time) or interval. In case no exact time is available, the date/time can be right truncated i.e. all of these are valid times: 2008-01-23T19:23:10+00:00; 2008-01-23T19:23:10; 2008-01-23; 2008-01; 2008; Except: 2008-01; 2008 all are ISO8601 compliant'
title: collection date
examples:
- value: 2018-05-11T10:00:00+01:00; 2018-05-11
from_schema: http://w3id.org/mixs/terms
aliases:
- collection date
is_a: environment field
slot_uri: MIXS:0000011
range: TimestampValue
multivalued: false

If the value is 2018-05-11, I don't know which timezone that is in. The same real world instant of time might be late on 2018-05-11 in California while being early on 2018-05-12 in New York.

I am afraid consumers will find the date values in this field to be ambiguous.

Are the absences of both (a) a requirement that the value include an indication of its timezone(s), and (b) a statement saying how schema-driven software will interpret a date string (e.g. whether it will assume it is in UTC), intentional?

@eecavanna eecavanna added the question Further information is requested label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant