From 5cdcd62ed963752dd315fe7ddfb7181f4c1722ea Mon Sep 17 00:00:00 2001 From: Hassaan Pasha Date: Fri, 20 Mar 2020 11:08:03 +0500 Subject: [PATCH] fix (curriculum): updated guidelines for the boilerplate text to match with the demo --- README.md | 2 +- views/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 71acc89..2b762a9 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ 4. If the date string is **valid** the api returns a JSON having the structure `{"unix": , "utc" : }` e.g. `{"unix": 1479663089000 ,"utc": "Sun, 20 Nov 2016 17:31:29 GMT"}`. -5. If the date string is **invalid** the api returns a JSON having the structure `{"unix": null, "utc" : "Invalid Date" }`. It is what you get from the date manipulation functions used above. +5. If the date string is **invalid** the api returns a JSON having the structure `{"error" : "Invalid Date" }`. #### Example usage: * https://curse-arrow.hyperdev.space/api/timestamp/2015-12-15 diff --git a/views/index.html b/views/index.html index 568cf7e..695ee2d 100644 --- a/views/index.html +++ b/views/index.html @@ -24,7 +24,7 @@
  • If the date string is valid the api returns a JSON having the structure
    {"unix": <date.getTime()>, "utc" : <date.toUTCString()> }
    e.g. {"unix": 1479663089000 ,"utc": "Sun, 20 Nov 2016 17:31:29 GMT"}
  • If the date string is invalid the api returns a JSON having the structure
    - {"unix": null, "utc" : "Invalid Date" }. It is what you get from the date manipulation functions used above. + {"error" : "Invalid Date" }.