Skip to content
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

Improved UI #1

Merged
merged 1 commit into from
Mar 23, 2024
Merged

Improved UI #1

merged 1 commit into from
Mar 23, 2024

Conversation

Gokilp
Copy link
Contributor

@Gokilp Gokilp commented Mar 23, 2024

Pull Request Description

Summary:

This pull request includes updates to the JavaScript code to adjust the clock for Indian Standard Time (IST) and add background color changes based on the time of day (AM/PM).

Changes Made:

  • Modified the updateClock function to adjust the time for Indian Standard Time (UTC+5:30).
  • Implemented background color changes based on whether it's AM or PM.

Details of Changes:

  • Used getUTCHours(), getUTCMinutes(), and getUTCSeconds() to get UTC time components.
  • Added 5 hours and 30 minutes to UTC time to adjust for IST.
  • Converted the time to 12-hour format and determined AM/PM indicator.
  • Updated background color based on the AM/PM indicator.

Testing:

  • Tested the code locally to ensure that the clock adjusts correctly for IST.
  • Verified that the background color changes based on AM/PM indicator.

Copy link

sonarcloud bot commented Mar 23, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@surendar-05 surendar-05 merged commit b0a918c into surendar-05:main Mar 23, 2024
1 check passed
@Gokilp
Copy link
Contributor Author

Gokilp commented Mar 23, 2024

Thank you @surendar-05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants