Skip to content

Commit

Permalink
Re-enabled Humanize library for printing dates
Browse files Browse the repository at this point in the history
Fixed the issue of the Humanize constructor crashing when
in a docker container using this issue:
Humanizr/Humanizer#1126
  • Loading branch information
bramvandenbussche committed Jun 16, 2024
1 parent 8b57d23 commit 31b059c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<div class="card-footer text-muted">
<div class="row">
<div class="col-lg-10">
<small title="@Highlight.RaisedTime.ToString("dddd dd MMMM yyyy HH:mm:ss")">Created @Highlight.RaisedTime.ToString()</small>
<small title="@Highlight.RaisedTime.ToString("dddd dd MMMM yyyy HH:mm:ss")">Created @Highlight.RaisedTime.Humanize()</small>
</div>

<div class="col-lg-2 text-end">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ else

@if (_selectedBook != null)
{
<h2>@_selectedBook.Title</h2>
<h2>Notes for `@_selectedBook.Title`</h2>

@foreach (var note in _selectedBook.Highlights)
{
Expand Down
1 change: 1 addition & 0 deletions bramvandenbussche.readwiser.web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ WORKDIR /app/bramvandenbussche.readwiser.web
RUN dotnet publish -c Release -o /app/published-app

FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine as runtime
RUN apk add --no-cache icu-libs
WORKDIR /app
COPY --from=build /app/published-app /app
ENTRYPOINT [ "dotnet", "/app/bramvandenbussche.readwiser.web.dll" ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<InvariantGlobalization>false</InvariantGlobalization>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 31b059c

Please sign in to comment.