diff --git a/CsuChhs.Blazor/Components/Common/PrettyTime.razor b/CsuChhs.Blazor/Components/Common/PrettyTime.razor new file mode 100644 index 0000000..520d197 --- /dev/null +++ b/CsuChhs.Blazor/Components/Common/PrettyTime.razor @@ -0,0 +1,15 @@ +@using Humanizer + +@prettyTime + +@code { + [Parameter] + public DateTime DateTime { get; set; } + + private string prettyTime = ""; + + protected override void OnParametersSet() + { + prettyTime = DateTime.Humanize(utcDate: false); + } +} \ No newline at end of file diff --git a/CsuChhs.Blazor/CsuChhs.Blazor.csproj b/CsuChhs.Blazor/CsuChhs.Blazor.csproj index eb92659..8906c7c 100644 --- a/CsuChhs.Blazor/CsuChhs.Blazor.csproj +++ b/CsuChhs.Blazor/CsuChhs.Blazor.csproj @@ -6,7 +6,7 @@ enable true CHHS Application Development Team - 1.0.7 + 1.0.8 https://github.com/csu-chhs/CsuChhs.Blazor College of Health and Human Sciences CsuChhs.Blazor