Skip to content
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

Unable to retrieve original UTC offset from date-time property values #107

Closed
mangstadt opened this issue Jul 7, 2020 · 2 comments
Closed

Comments

@mangstadt
Copy link
Owner

From a user via email on July 6 2020.

They are using ez-vcard to convert vCards to JSContact. They want to preserve the UTC offset in date-time properties (such as ANNIVERSARY, BDAY, and REV).

Currently, ez-vcard converts these property values to java.util.Date objects, which means the original UTC offset is lost.

@mangstadt
Copy link
Owner Author

I suggested creating a custom scribe to get the raw text value. This suited their needs.

https://gist.github.com/mangstadt/c35786001b928e2fe02d3a0583fa9cf5

mangstadt added a commit that referenced this issue Jul 11, 2020
This is done by passing a Calendar object to date/time property objects.

#107
@mangstadt
Copy link
Owner Author

Request reopened. User needs zone offset to be accessible.

Functionality added in c5777f6

@mangstadt mangstadt reopened this Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant