https://github.com/welpo/dst
See the next DST change in your timezone.
https://github.com/welpo/dst
daylight-saving daylight-saving-time daylight-savings dst
Last synced: 3 months ago
JSON representation
See the next DST change in your timezone.
- Host: GitHub
- URL: https://github.com/welpo/dst
- Owner: welpo
- License: gpl-3.0
- Created: 2025-01-26T20:18:32.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-02-03T21:13:44.000Z (4 months ago)
- Last Synced: 2025-02-03T22:20:21.135Z (4 months ago)
- Topics: daylight-saving, daylight-saving-time, daylight-savings, dst
- Language: JavaScript
- Homepage: https://dst.osc.garden
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: COPYING
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
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](https://nemui.osc.garden) ([repo](https://github.com/welpo/nemui)), 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 browserThe app consists of three main files:
- `index.html`: Basic structure
- `styles.css`: Styles
- `app.js`: Time change detection and display logic## Need help?
- Questions or ideas → [Start a discussion](https://github.com/welpo/dst/discussions)
- Found a bug? → [Report it](https://github.com/welpo/dst/issues/new?&labels=bug)
- Feature request? → [Let me know](https://github.com/welpo/dst/issues/new?&labels=feature)## 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](./COPYING), either version 3 of the License, or (at your option) any later version.