Bug 821 - Incorrect Time Display in the Main menu
Summary: Incorrect Time Display in the Main menu
Status: CONFIRMED
Alias: None
Product: Hospital System
Classification: Unclassified
Component: Login System (show other bugs)
Version: beta release
Hardware: PC Windows
: --- critical
Assignee: klhwong3-c
URL:
Depends on:
Blocks:
 
Reported: 2023-12-08 22:09 HKT by klhwong3-c
Modified: 2023-12-08 22:09 HKT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description klhwong3-c 2023-12-08 22:09:09 HKT
Step to reproduce:

1. Log into the HMS.
2. Choose option 2 to 'Create new account'.
3. After successful account creation, the main menu displays with an incorrect time stamp at the bottom.

Screen dump:
--------------------------------------------------------
|   Welcome to the Hospital Management System (HMS)    |
|   Please select the following options:               |
|   1. Login                                           |
|   2. Create new account                              |
--------------------------------------------------------
2
checking admin command: 2
--------------------------------------------------------
|                 <Create new account>                 |
|   Please input username and password (separated by /)|
|   or enter 'q' to quit.                              |
--------------------------------------------------------
kenny/p@ssw0rd
checking admin command: kenny/p@ssw0rd
--------------------------------------------------------
|   Welcome to the Hospital Management System (HMS)    |
|   Please select the following options:               |
|   1. Make an appointment                             |
|   2. Take A&E treatment                              |
|   3. Check your sick history                         |
|   4. Check your current Ticket                       |
|   5. See Doctor                                                         |
|   6. Log out                                         |
--------------------------------------------------------
|   Current time: com.cs3343.group1.hospitalSystem.time.TimeSystem@448139f0