diff --git a/CD220Labs/http_server/today.js b/CD220Labs/http_server/today.js index 43e54d2b3..2ecfb3197 100644 --- a/CD220Labs/http_server/today.js +++ b/CD220Labs/http_server/today.js @@ -1,6 +1,8 @@ // Export a function named 'getDate' from the module module.exports.getDate = function getDate() { // Get the current date and time in the timezone "Australia/Brisbane" - let aestTime = new Date().toLocaleString("en-US", {timeZone: "Australia/Brisbane"}); + const { DateTime } = require("luxon"); + let aestTime = DateTime.now().setZone("Australia/Brisbane").toLocaleString(DateTime.DATETIME_MED); return aestTime; // Return the formatted date and time + //v2 }; diff --git a/lkpho-Cloud-applications-with-Node.js-and-React.code-workspace b/lkpho-Cloud-applications-with-Node.js-and-React.code-workspace new file mode 100644 index 000000000..8027b4722 --- /dev/null +++ b/lkpho-Cloud-applications-with-Node.js-and-React.code-workspace @@ -0,0 +1,11 @@ +{ + "folders": [ + { + "path": "." + }, + { + "path": "../supreme-octo-waddle" + } + ], + "settings": {} +} \ No newline at end of file