Skip to content

Commit 637be5a

Browse files
committed
Fixed AWS Server Timezone
1 parent 512e753 commit 637be5a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

backend/server/server.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ app.use("/notifications", notifications);
4040
app.use("/users", users);
4141

4242
// Cron - Cloud Function usage
43-
cron.schedule("0 0 0 * * *", function () {
44-
// Run at 00:00:00
45-
logger.warn("It's 00:00. Resetting all user hug counts :)");
43+
cron.schedule("0 0 8 * * *", function () {
44+
// Run at 00:00:00 (00:00 PST) == (08:00 UTC)
45+
let d = new Date(Date.now());
46+
let timeString = d.toTimeString();
47+
logger.warn(`It's ${timeString}. Resetting all user hug counts :)`);
4648
CloudFunctionsAPI.resetUserHugCounts();
4749
});
4850

frontend/app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"adaptiveIcon": {
3333
"foregroundImage": "./assets/images/adaptive-icon.png",
3434
"backgroundColor": "#FFFFFF"
35-
}
35+
},
36+
"package": "com.teamcafe.fouro"
3637
},
3738
"web": {
3839
"favicon": "./assets/favicon.png"

0 commit comments

Comments
 (0)