Skip to content

Commit

Permalink
Switch to utc for test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
jveski committed Jun 25, 2024
1 parent 00a9dcf commit 3ac9694
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/server/fixtures/canceled.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h3 class="panel-title">Payment</h3>
<div class="panel-body">
<div class="well">
<h4>Membership Status: <span class="label label-default">Canceled</span></h4>
Your subscription has been canceled. Membership will expire on 06/20/24.
Your subscription has been canceled. Membership will expire on 06/25/24.
</div>
<div class="btn-group" role="group" aria-label="...">
<a href="/profile/stripe" role="button" class="btn btn-default">Manage Subscription With Stripe</a>
Expand Down
2 changes: 1 addition & 1 deletion internal/server/fixtures/paypal.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h3 class="panel-title">Payment</h3>

<div class="panel-body">
<div class="alert alert-warning" role="alert">
We found a Paypal payment associated with your email address from 06/20/2024. Signing up here will cancel the Paypal subscription
We found a Paypal payment associated with your email address from 06/25/2024. Signing up here will cancel the Paypal subscription
while preserving the same price and interval.
<br><br>
<a href="/profile/stripe?price=paypal" role="button" class="btn btn-default">
Expand Down
4 changes: 2 additions & 2 deletions internal/server/ui_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestRenderProfile(t *testing.T) {
Email: "[email protected]",
DiscountType: "developersdevelopersdevelopers",
StripeSubscriptionID: "foo",
StripeCancelationTime: time.Now().Add(-time.Hour),
StripeCancelationTime: time.Now().UTC().Add(-time.Hour),
},
},
{
Expand All @@ -73,7 +73,7 @@ func TestRenderProfile(t *testing.T) {
DiscountType: "developersdevelopersdevelopers",
PaypalMetadata: datamodel.PaypalMetadata{
Price: 6000,
TimeRFC3339: time.Now(),
TimeRFC3339: time.Now().UTC(),
TransactionID: "foobarbaz",
},
},
Expand Down

0 comments on commit 3ac9694

Please sign in to comment.