diff options
-rw-r--r-- | src/components/comments/CommentTile.tsx | 2 | ||||
-rw-r--r-- | src/screens/profile/IndividualMoment.tsx | 2 | ||||
-rw-r--r-- | src/types/types.ts | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/components/comments/CommentTile.tsx b/src/components/comments/CommentTile.tsx index f286ba52..47f25a53 100644 --- a/src/components/comments/CommentTile.tsx +++ b/src/components/comments/CommentTile.tsx @@ -19,7 +19,7 @@ const CommentTile: React.FC<CommentTileProps> = ({ comment_object, screenType, }) => { - const timePosted = getTimePosted(comment_object.date_time); + const timePosted = getTimePosted(comment_object.date_created); return ( <View style={styles.container}> <ProfilePreview diff --git a/src/screens/profile/IndividualMoment.tsx b/src/screens/profile/IndividualMoment.tsx index 91742324..f13e1295 100644 --- a/src/screens/profile/IndividualMoment.tsx +++ b/src/screens/profile/IndividualMoment.tsx @@ -71,7 +71,7 @@ const IndividualMoment: React.FC<IndividualMomentProps> = ({ momentId={item.moment_id} caption={item.caption} pathHash={item.path_hash} - dateTime={item.date_time} + dateTime={item.date_created} screenType={screenType} /> </View> diff --git a/src/types/types.ts b/src/types/types.ts index d3ecc908..b3148bc4 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -76,7 +76,7 @@ export interface LinkerType { export interface MomentType { moment_id: string; caption: string; - date_time: string; + date_created: string; moment_category: string; path_hash: string; } @@ -84,7 +84,7 @@ export interface MomentType { export interface CommentType { comment_id: string; comment: string; - date_time: string; + date_created: string; moment_id: string; commenter: ProfilePreviewType; } |