https://github.com/mikeralphson/timezone
Create a local timezone badge based on an appointment or meeting time
https://github.com/mikeralphson/timezone
Last synced: 9 months ago
JSON representation
Create a local timezone badge based on an appointment or meeting time
- Host: GitHub
- URL: https://github.com/mikeralphson/timezone
- Owner: MikeRalphson
- License: bsd-3-clause
- Created: 2020-08-25T13:01:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-25T14:39:11.000Z (over 5 years ago)
- Last Synced: 2024-10-05T19:21:34.151Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# timezone
Generates a `shields.io` style badge based on a source datetime and timezone in your local timezone, as returned from a geo-ip lookup.
## Config
* Runs on port defined by `PORT` environment variable, default 3002.
* Respects `x-forwarded-for` header for reverse proxies.
## Routes
* `/tz` - generate badge
* query parameter `d` - the date-time of the appointment/meeting
* query parameter `tz` - the timezone locale (e.g. `America/Los_Angeles`)
* query parameter `city` - if set, city information is included if known
* `/tz/status` - show uptime and number of badges generated
* `/tz/hdrs` - show client headers for debugging