You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue with parsing an ISO8601 timestamp when the ".000Z" is included. This used to work as expected in my previously used version v2.0.1, but this to not work anymore.
Going to close this issue — seems like I answered my own question with the example posted. The solution was to simply use ParseByLayout with RFC3339Format as the layout.
Hello,
I encountered an issue with parsing an ISO8601 timestamp when the ".000Z" is included. This used to work as expected in my previously used version v2.0.1, but this to not work anymore.
Consider the following code:
golang version: 1.18
carbon version: v2.1.9
I expected to get:
But I actually get:
On a quick investigation, it seems that the removal of the following block might be the cause of the issue: https://github.com/golang-module/carbon/blob/f0fe61dd83557cfb27fc3a03e730a66d78b42f03/parser.go#L25
Noticed this only happened when upgraded to v2.1.9
Thanks!
The text was updated successfully, but these errors were encountered: