Bug 710 - getLeftDays() doesn't work with the format String
Summary: getLeftDays() doesn't work with the format String
Status: CONFIRMED
Alias: None
Product: CS3343_SEP_group8
Classification: Unclassified
Component: Model (show other bugs)
Version: version0
Hardware: PC Windows
: --- major
Assignee: Meryem
URL:
Depends on:
Blocks:
 
Reported: 2022-11-16 16:52 HKT by Meryem
Modified: 2022-11-16 16:52 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Meryem 2022-11-16 16:52:18 HKT
Problem location : Task.java
Problem found : TestTask.java (t35getLeftDays())

The format for getLeftDays() -> should be 4 instead of 209!!
To have the correct result of getLeftDays() method, the format String does not work and should be converted as shown below
PlannerDateUtil.getLeftDays(PlannerDateUtil.dateStringConvertToDate("18/11/2022"))