Skip to content

Commit

Permalink
Merge pull request #16 from csu-chhs/pretty-time
Browse files Browse the repository at this point in the history
Add pretty time
  • Loading branch information
dstegelman authored Aug 1, 2024
2 parents 6da37ff + 6b00197 commit b8883db
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions CsuChhs.Blazor/Components/Common/PrettyTime.razor
Original file line number Diff line number Diff line change
@@ -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);
}
}
2 changes: 1 addition & 1 deletion CsuChhs.Blazor/CsuChhs.Blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>CHHS Application Development Team</Authors>
<Version>1.0.7</Version>
<Version>1.0.8</Version>
<PackageProjectUrl>https://github.com/csu-chhs/CsuChhs.Blazor</PackageProjectUrl>
<Company>College of Health and Human Sciences</Company>
<PackageId>CsuChhs.Blazor</PackageId>
Expand Down

0 comments on commit b8883db

Please sign in to comment.