Skip to content

Commit

Permalink
Show announcement time on website landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
Slendy committed May 14, 2024
1 parent 05145ea commit e95f636
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ProjectLighthouse.Servers.Website/Pages/LandingPage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
bool isMobile = Request.IsMobile();
string language = Model.GetLanguage();
string timeZone = Model.GetTimeZone();
TimeZoneInfo timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(timeZone);
}
<h1 class="lighthouse-welcome lighthouse-title">
@Model.Translate(LandingPageStrings.Welcome, ServerConfiguration.Instance.Customization.ServerName)
Expand Down Expand Up @@ -82,6 +83,7 @@
<a style="color: black" href="~/user/@Model.LatestAnnouncement.Publisher.UserId">
@Model.LatestAnnouncement.Publisher.Username
</a>
at @TimeZoneInfo.ConvertTime(Model.LatestAnnouncement.PublishedAt, TimeZoneInfo.Utc, timeZoneInfo).ToString("M/d/yyyy h:mm:ss tt")
</div>
}
</div>
Expand Down

0 comments on commit e95f636

Please sign in to comment.