Skip to content

Commit

Permalink
MITx Online receipt displays wrong date (#2331)
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-at-mit authored Aug 7, 2024
1 parent d4edaba commit 42a161e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ecommerce/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ class Meta:
"lines",
"created_on",
"titles",
"updated_on",
]
model = models.Order
depth = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class OrderHistory extends React.Component<Props> {
const orderTitle =
order.titles.length > 0 ? order.titles.join("<br />") : <em>No Items</em>
const orderDate = formatPrettyDateTimeAmPmTz(
parseDateString(order.created_on)
parseDateString(order.updated_on)
)
return (
<tr scope="row" key={`ordercard_${order.id}`}>
Expand Down

0 comments on commit 42a161e

Please sign in to comment.