Skip to content

Commit

Permalink
Fix time zone bug in requests header (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
sherryhli authored and leogjhuang committed Apr 29, 2023
1 parent 5fbc628 commit 31e0466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/admin/requests/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ShopifyBadge from '@components/admin/ShopifyBadge';
import PermitTypeBadge from '@components/admin/PermitTypeBadge';
import { ApplicationStatus, ApplicationType, PermitType } from '@lib/graphql/types';
import { titlecase } from '@tools/string';
import { formatDateYYYYMMDD } from '@lib/utils/date';
import { formatDateYYYYMMDD, formatDateYYYYMMDDLocal } from '@lib/utils/date';
import { getPermanentPermitExpiryDate } from '@lib/utils/permit-expiry';

type RequestHeaderProps = {
Expand Down Expand Up @@ -85,7 +85,7 @@ export default function RequestHeader({
</Flex>
<HStack spacing={3} marginTop={3}>
<Text textStyle="caption" as="p">
Received on {formatDateYYYYMMDD(createdAt)} at{' '}
Received on {formatDateYYYYMMDDLocal(createdAt)} at{' '}
{createdAt.toLocaleTimeString('en-CA')}
</Text>
</HStack>
Expand Down

0 comments on commit 31e0466

Please sign in to comment.