diff --git a/pkg/grid/src/components/TreatyMeta.tsx b/pkg/grid/src/components/TreatyMeta.tsx index baa9d861a..00974bb70 100644 --- a/pkg/grid/src/components/TreatyMeta.tsx +++ b/pkg/grid/src/components/TreatyMeta.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Treaty } from '@urbit/api'; +import { daToDate, Treaty } from '@urbit/api'; import moment from 'moment'; import { Attribute } from './Attribute'; @@ -15,7 +15,7 @@ export function TreatyMeta(props: { treaty: Treaty }) { {ship}/{desk} - {moment(cass.da).format('YYYY.MM.DD')} + {moment(daToDate(cass.da)).format('YYYY.MM.DD')} {meta.map((d) => ( diff --git a/pkg/npm/api/hood/types.ts b/pkg/npm/api/hood/types.ts index 4b561d15b..4e59cb0bd 100644 --- a/pkg/npm/api/hood/types.ts +++ b/pkg/npm/api/hood/types.ts @@ -113,12 +113,12 @@ export interface Cass { */ ud: number; /** - * Timestamp of revision, as unix timestamp + * Timestamp of revision, as stringifed `@da` * * @remarks * If \@da is outside valid positive unix timestamp, value will be zero */ - da: number; + da: string; } /**