Skip to content

welpo/dst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

app status PRs welcome license clean commits

Screenshot of dst.osc.garden showing when the next clock change will occur

Try it now!

A minimalist web app that shows when your next clock change is happening and how it will affect your sleep. It detects your timezone and shows a countdown to the next Daylight Saving Time transition.

Wondering how to handle the time change without disrupting your sleep? Check out nemui (repo), a sleep schedule planner that can help you gradually adjust to the new time.

Features

  • Automatic timezone detection
  • Shows:
    • Exact date and time of the change
    • Whether you'll gain or lose an hour of sleep
    • Countdown to the transition
    • Current DST status
  • Dark mode support
  • Handles all types of time changes:
    • Standard DST transitions
    • Partial-hour changes
    • Different DST schedules worldwide

Contributing

Contributions are welcome! The app is built with vanilla JavaScript, HTML, and CSS. To run locally:

  1. Clone the repository: git clone https://github.com/welpo/dst.git
  2. Navigate to the directory: cd dst/app
  3. Start a local server: python3 -m http.server
  4. Visit http://localhost:8000 in your browser

The app consists of three main files:

  • index.html: Basic structure
  • styles.css: Styles
  • app.js: Time change detection and display logic

Need help?

License

nemui is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

About

See the next DST change in your timezone.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project