Skip to content
This repository was archived by the owner on Apr 10, 2019. It is now read-only.
This repository was archived by the owner on Apr 10, 2019. It is now read-only.

min/max date expects user time, receives UTC #33

Description

@ashleydw

picker.getDatePicker().setMinDate(mMinDate.getTimeInMillis());

picker.getDatePicker().setMinDate() expects a timestamp in the user time: http://developer.android.com/reference/android/widget/DatePicker.html#setMaxDate(long)

Sets the maximal date supported by this DatePicker in milliseconds since January 1, 1970 00:00:00 in getDefault() time zone.

mMinDate.getTimeInMillis() returns a timestamp in UTC:

https://docs.oracle.com/javase/7/docs/api/java/util/Calendar.html#getTimeInMillis()

Returns: the current time as UTC milliseconds from the epoch.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions