OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] (ODATA-917) 5.1.1.2.1 Addition and 5.1.1.2.2 Subtraction: Date add/sub Duration is DateTimeOffset - but in which time zone?


     [ https://issues.oasis-open.org/browse/ODATA-917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Pizzo updated ODATA-917:
--------------------------------

    Proposal: 
Date add duration is date, and lose fractional days.


  was:
1) use midnight UTC as assumed time of date
2) Support cast of date to datetimeoffset using midnight UTC



> 5.1.1.2.1 Addition and 5.1.1.2.2 Subtraction: Date add/sub Duration is DateTimeOffset - but in which time zone?
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: ODATA-917
>                 URL: https://issues.oasis-open.org/browse/ODATA-917
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Bug
>          Components: OData URL Conventions
>    Affects Versions: V4.0_ERRATA02
>         Environment: [Proposed]
>            Reporter: Ralf Handl
>             Fix For: V4.0_ERRATA03
>
>
> The cited sections allow these operations but fail to provide guidance on how to implement them.
> DateTimeOffset must have a time zone, date cannot have a time zone.
> It would be better to 
> - disallow these operations altogether
> - define the result type as Date and specify how to round or ignore sub-day duration portions



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]