-
-
Notifications
You must be signed in to change notification settings - Fork 453
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
Replace all left-over Date usages with java.time #3767
Conversation
@@ -639,12 +637,12 @@ | |||
} | |||
}; | |||
|
|||
public long getCurrentLocalStartDate() { | |||
return mCurrentLocalGuideStart; | |||
public LocalDateTime getCurrentLocalStartDate() { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
} | ||
|
||
public long getCurrentLocalEndDate() { | ||
return mCurrentLocalGuideEnd; | ||
public LocalDateTime getCurrentLocalEndDate() { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
|
||
public FriendlyDateButton(Context context, long thisDate, OnClickListener listener) { | ||
public FriendlyDateButton(Context context, LocalDateTime thisDate, OnClickListener listener) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
|
||
public FriendlyDateButton(Context context, long thisDate, OnClickListener listener) { | ||
public FriendlyDateButton(Context context, LocalDateTime thisDate, OnClickListener listener) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
|
||
public FriendlyDateButton(Context context, long thisDate, OnClickListener listener) { | ||
public FriendlyDateButton(Context context, LocalDateTime thisDate, OnClickListener listener) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
@@ -59,12 +55,11 @@ | |||
} | |||
} | |||
|
|||
public static String getFriendlyDate(Context context, Date date) { | |||
public static String getFriendlyDate(Context context, LocalDateTime date) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
@@ -59,12 +55,11 @@ | |||
} | |||
} | |||
|
|||
public static String getFriendlyDate(Context context, Date date) { | |||
public static String getFriendlyDate(Context context, LocalDateTime date) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
return getFriendlyDate(context, date, false); | ||
} | ||
|
||
public static String getFriendlyDate(Context context, Date date, boolean relative) { | ||
LocalDateTime dateTime = getLocalDateTime(date); | ||
public static String getFriendlyDate(Context context, LocalDateTime dateTime, boolean relative) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
return getFriendlyDate(context, date, false); | ||
} | ||
|
||
public static String getFriendlyDate(Context context, Date date, boolean relative) { | ||
LocalDateTime dateTime = getLocalDateTime(date); | ||
public static String getFriendlyDate(Context context, LocalDateTime dateTime, boolean relative) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
return getFriendlyDate(context, date, false); | ||
} | ||
|
||
public static String getFriendlyDate(Context context, Date date, boolean relative) { | ||
LocalDateTime dateTime = getLocalDateTime(date); | ||
public static String getFriendlyDate(Context context, LocalDateTime dateTime, boolean relative) { |
Check notice
Code scanning / Android Lint
Unknown nullness Note
ugh live tv guide broken again. marking it as draft for now and gonna fix that when I have some more energy. |
Turns out everything is fine. The date and time in my Android emulator was 2 days behind so that's why the guide didn't populate. Thanks Google for never fixing this issue. |
sample text
Changes
Issues