Closed MaximilianKresse closed 3 years ago
I keep this issue opened as the PR #30 only addresses the first part, but not the class name issue.
Hi @MaximilianKresse ,
The remaining comment is going to be addressed by #31.
I close this issue now. Feel free to open it or comment if needed. Regards
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
https://github.com/Spomky-Labs/cbor-php/blob/v2.0.1/src/Tag/EpochTag.php#L43
The EpochTag class currently does only support "Y-m-d\TH:i:sP" (RFC3339).
Following the RFC7049 2.4.1 (CBOR) they reference to RFC4287 3.3 with the following example datetimes:
Currently only the first and third is supported.
Another thing - I think the class name "EpochTag" is wrong. "Epoch time" is another name for the unix time or timestamp: https://en.wikipedia.org/wiki/Unix_time The TimestampTag could have this name, but this tag should be named something like "DateTimeTag".