Skip to content

(2) Migrating to the new Date Time API

Tyler Sizse requested to merge issue_233_date_time_api into main

License and Copyright Notice

By submitting this issue or commenting on this issue, or contributing any content to this issue, you certify under the Developer Certificate of Origin that the content you post may be licensed under GPLv3 (for code) or CC-BY-SA 4.0 International (for non-code content).

Branch Name

issue_233_date_time_api

Related Issues

Closes #233 (closed); Closes #238 (closed);

Dependencies

Description

This merge request will update the usage of the obsolete Legacy Date Time Code (java.util) to the new Date Time API (java.time) introduced in Java 8. This will make it much easier to handle date calculations.

  • NOTE: This merge request will increase the minSdkVersion from 24 to 26.

Steps to Test

Navigate through each Fragment of the 'Check Expiration Date Feature' and make sure the date are still being calculated and displayed the same.

Relevant Screenshots

N/A

Relevant Logs

N/A

Developer Notes

  • Merged branch issue_227_traffic_light_fragment into this branch
  • Merged branch issue_232_upgrade_agp into this branch
  • Increased minSdkVersion from 24 to 26
  • Converted old Date Time Code to use the new Date Time API
  • Added switch case for `Package use-by date" to fix issue #238 (closed)

LABELS

NEST component:check-expiration-date type::refactor status::done

Edited by Tyler Sizse

Merge request reports