Skip to content

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

Open
lemonboston wants to merge 4 commits into
masterfrom
mx/647-datetimefieldadapters
Open

DateTimeFieldAdapters as a preparation for removing Time. #647#652
lemonboston wants to merge 4 commits into
masterfrom
mx/647-datetimefieldadapters

Conversation

@lemonboston

@lemonboston lemonboston commented Jan 25, 2018

Copy link
Copy Markdown
Contributor

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