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

DateTimeFieldAdapters as a preparation for removing Time. #647 #652

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

lemonboston
Copy link
Contributor

@lemonboston lemonboston commented Jan 25, 2018

This pull requests adds two FieldAdapters:
TimestampDateTimeFieldAdapter - for fields that only use a timestamp
CombinedDateTimeFieldAdapter - for combined date-time fields

They are not wired in yet here.

Many additional types, classes have been added for the implementation, to support code re-use and to move towards having every date-time interpretation code/logic defined only at one place in the code base.

There is already a DateTimeFieldAdapter for the other type of FieldAdapter (org.dmfs.provider.tasks.model.adapters.FieldAdapter) in the codebase, the next step could be to update that with the classes used here, while also reviewing that it interprets date-times the same way.
After that we could wire in the new FieldAdapters, which will probably mean the need to remove Time at the same time from almost everywhere.

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

Successfully merging this pull request may close these issues.

2 participants