mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 10:08:39 +00:00
Show announcement time on website landing page
This commit is contained in:
parent
05145ea7cb
commit
e95f636f68
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
||||||
bool isMobile = Request.IsMobile();
|
bool isMobile = Request.IsMobile();
|
||||||
string language = Model.GetLanguage();
|
string language = Model.GetLanguage();
|
||||||
string timeZone = Model.GetTimeZone();
|
string timeZone = Model.GetTimeZone();
|
||||||
|
TimeZoneInfo timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(timeZone);
|
||||||
}
|
}
|
||||||
<h1 class="lighthouse-welcome lighthouse-title">
|
<h1 class="lighthouse-welcome lighthouse-title">
|
||||||
@Model.Translate(LandingPageStrings.Welcome, ServerConfiguration.Instance.Customization.ServerName)
|
@Model.Translate(LandingPageStrings.Welcome, ServerConfiguration.Instance.Customization.ServerName)
|
||||||
|
@ -82,6 +83,7 @@
|
||||||
<a style="color: black" href="~/user/@Model.LatestAnnouncement.Publisher.UserId">
|
<a style="color: black" href="~/user/@Model.LatestAnnouncement.Publisher.UserId">
|
||||||
@Model.LatestAnnouncement.Publisher.Username
|
@Model.LatestAnnouncement.Publisher.Username
|
||||||
</a>
|
</a>
|
||||||
|
at @TimeZoneInfo.ConvertTime(Model.LatestAnnouncement.PublishedAt, TimeZoneInfo.Utc, timeZoneInfo).ToString("M/d/yyyy h:mm:ss tt")
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue