Skip to content

Commit

Permalink
Fixed inconsistent expiration date formats
Browse files Browse the repository at this point in the history
  • Loading branch information
Conner-DeJong committed May 4, 2024
1 parent 59286c2 commit 983a414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ app.http("insertFood", {
const quantity = 0;
const timeElapsed = Date.now();
const today = new Date(timeElapsed);
const expirationDate = today.toLocaleDateString();
const expirationDate = today.toISOString().split('T')[0];
const timestamp = new Date(Date.now());
const unit = "";
// const expirationDate = null;
Expand Down

0 comments on commit 983a414

Please sign in to comment.