mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-28 11:40:11 +03:00
grid: fix treaty update time rendering
This commit is contained in:
parent
10885ac57a
commit
10d474c38f
@ -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}
|
||||
</Attribute>
|
||||
<Attribute title="Last Software Update" attr="case">
|
||||
{moment(cass.da).format('YYYY.MM.DD')}
|
||||
{moment(daToDate(cass.da)).format('YYYY.MM.DD')}
|
||||
</Attribute>
|
||||
{meta.map((d) => (
|
||||
<Attribute key={d} attr={d}>
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user