Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
whats-open-android
whats-open-android
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 19
    • Issues 19
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • SRCT
  • whats-open-androidwhats-open-android
  • Issues
  • #29

Closed
Open
Opened Oct 25, 2017 by Robert Hitt@rhittOwner
  • Report abuse
  • New issue
Report abuse New issue

Remove Unnecessary Date Parsing

Summary

Currently, the MainPresenter unnecessarily parses time strings into Date objects. For some reason I thought this was necessary to compare them, but upon second thought it might not be that necessary. So, in all places in MainPresenter.java, sdf.parse() should be removed.

e.g. Date startTime = sdf.parse(currentOpenTimes.getStartTime()); should be changed to String startTime = currentOpenTimes.getStartTime();

Also, after everything is removed, all tests should be run to make sure nothing is busted.

Helpful Links

  • https://developer.android.com/training/testing/unit-testing/local-unit-tests.html#run for running tests
Assignee
Assign to
1.1 "Rhea Edition"
Milestone
1.1 "Rhea Edition" (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: srct/whats-open-android#29