diff --git a/ProjectLighthouse/Pages/UserPage.cshtml b/ProjectLighthouse/Pages/UserPage.cshtml index 68317395..128a7883 100644 --- a/ProjectLighthouse/Pages/UserPage.cshtml +++ b/ProjectLighthouse/Pages/UserPage.cshtml @@ -81,21 +81,24 @@ } -@if (Model.ProfileUser.Comments > 0) -{ -
- @timestamp.ToString("MM/dd/yyyy @ h:mm tt") UTC -
- -There are no comments.
+ } + + @foreach (Comment comment in Model.Comments!) + { + DateTimeOffset timestamp = DateTimeOffset.FromUnixTimeSeconds(comment.Timestamp / 1000); ++ @timestamp.ToString("MM/dd/yyyy @ h:mm tt") UTC +
+ +