Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
taugk committed Dec 17, 2023
1 parent a584c01 commit ce08c97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/postsRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ router.post(
try {
const datetime = moment.unix(pickupTime);
formatDateTime = datetime.format("YYYY-MM-DD HH:mm:ss");
numericDateTime = datetime.unix();
numericDateTime = datetime.unix() * 1000;
} catch (error) {
console.error("Error converting pickupTime:", error);
}
Expand All @@ -464,6 +464,7 @@ router.post(
description,
price,
pickupTime: formatDateTime,
pickupTimeMillis: numericDateTime,
imgUrl: imageUrl,
freshness,
lat,
Expand Down

0 comments on commit ce08c97

Please sign in to comment.