From 47a591c2803650ce562ee4c80ad7cc0a3389824d Mon Sep 17 00:00:00 2001 From: Mefju Pe Date: Tue, 1 Apr 2025 19:05:37 +0200 Subject: [PATCH 1/4] tz update --- CD220Labs/http_server/today.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CD220Labs/http_server/today.js b/CD220Labs/http_server/today.js index 43e54d2b3..893652aaa 100644 --- a/CD220Labs/http_server/today.js +++ b/CD220Labs/http_server/today.js @@ -1,6 +1,7 @@ // 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"}); + let brisbaneTime = new Date().toLocaleString("en-US", {timeZone: "Australia/Brisbane"}); + return brisbaneTime; // Return the formatted date and time return aestTime; // Return the formatted date and time }; From 2e18d0c73b6a1bd0698366a63e4bf478fd09a50d Mon Sep 17 00:00:00 2001 From: Mefju Pe Date: Tue, 1 Apr 2025 20:32:22 +0200 Subject: [PATCH 2/4] new Timezone("America/New_York").format("YYYY-MM-DD HH:mm:ss Z") + "\n" + --- CD220Labs/http_server/today.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CD220Labs/http_server/today.js b/CD220Labs/http_server/today.js index 893652aaa..53b65e576 100644 --- a/CD220Labs/http_server/today.js +++ b/CD220Labs/http_server/today.js @@ -1,7 +1,7 @@ // 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 brisbaneTime = new Date().toLocaleString("en-US", {timeZone: "Australia/Brisbane"}); - return brisbaneTime; // Return the formatted date and time + const { DateTime } = require("luxon"); + let aestTime = DateTime.now().setZone("Australia/Brisbane").toLocaleString(DateTime.DATETIME_MED); return aestTime; // Return the formatted date and time }; From 357965a7be5d9b2d9527cddbbede894a9fe65834 Mon Sep 17 00:00:00 2001 From: Mefju Pe Date: Tue, 1 Apr 2025 20:47:28 +0200 Subject: [PATCH 3/4] v2 --- CD220Labs/http_server/today.js | 1 + 1 file changed, 1 insertion(+) diff --git a/CD220Labs/http_server/today.js b/CD220Labs/http_server/today.js index 53b65e576..2ecfb3197 100644 --- a/CD220Labs/http_server/today.js +++ b/CD220Labs/http_server/today.js @@ -4,4 +4,5 @@ module.exports.getDate = function getDate() { const { DateTime } = require("luxon"); let aestTime = DateTime.now().setZone("Australia/Brisbane").toLocaleString(DateTime.DATETIME_MED); return aestTime; // Return the formatted date and time + //v2 }; From 4b39d3268a8d72080a3218236dabd78e8aecdd99 Mon Sep 17 00:00:00 2001 From: Mefju Pe Date: Wed, 2 Apr 2025 00:16:31 +0200 Subject: [PATCH 4/4] v4 --- ...applications-with-Node.js-and-React.code-workspace | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lkpho-Cloud-applications-with-Node.js-and-React.code-workspace 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