Sign inSign up

miguelpeixe/date-service

By miguelpeixe

Updated over 8 years ago

Small docker-ready express web service for current date with timezone support.

Image
0

974

miguelpeixe/date-service repository overview

Date Service

Small docker-ready express web service for current date with timezone support from the IANA Time Zone Database.


Configuration

Environment variables
  • APP_BASE - App base path
  • WHITELIST_DOMAINS - Comma-separated list of CORS allowed domains. Leave empty to allow any.

API Endpoints

GET /date

Get current date.

Query parameterDescription
tzTimezone in IANA TZ name format
Example

GET http://example.com/date?tz=America/New_York

Result
{ "date": "2018-01-09T08:17:12-05:00" }

Tag summary

Content type

Image

Digest

Size

43.3 MB

Last updated

over 8 years ago

docker pull miguelpeixe/date-service