chrisyau83/world-time-api ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple public world time API that returns JSON for current local time, timezone offsets, daylight saving status, and IP based location. I want endpoints for getting the time for a specific IANA timezone like Europe/London, another endpoint that auto detects the caller’s time from their public IP, and one that lists all valid timezones. It should be fast, easy to call from browser or server code, and work without any API key.
Make the responses include useful time details like datetime, abbreviation, UTC offset, DST info, unix time, day of week, day of year, and week number. Also make it CORS friendly so it can be used directly in frontend apps. If you need to, look up the latest docs for any timezone handling details and make the API feel clean and reliable.
Are you gonna build this?
make sure you review the code using coderabbit