Skip to content

Commit

Permalink
Set UTF-8 for dates
Browse files Browse the repository at this point in the history
  • Loading branch information
bestmomo committed Dec 29, 2017
1 parent e67fdb3 commit 7aaf2ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/front/comments/comments-base.blade.php
Expand Up @@ -18,7 +18,7 @@
@endif

<div class="comment-meta">
<time class="comment-time" datetime="{{ $comment->created_at }}">{{ $comment->created_at->formatLocalized('%A %d %B %Y') }}</time>
<time class="comment-time" datetime="{{ $comment->created_at }}">{{ ucfirst (utf8_encode ($comment->created_at->formatLocalized('%A %d %B %Y'))) }}</time>
@if(Auth::check() && $level < config('app.commentsNestedLevel'))
<span class="sep">/</span><a id="reply-create{!! $comment->id !!}" class="reply" href="#">@lang('Reply')</a>
<form id="reply-form{{ $comment->id }}" method="post" action="{{ route('posts.comments.comments.store', [$post->id, $comment->id]) }}" class="reply-form hide">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/front/post.blade.php
Expand Up @@ -27,7 +27,7 @@
<h1 class="page-title">{{ $post->title }}</h1>

<ul class="entry-meta">
<li class="date">{{ $post->created_at->formatLocalized('%A %d %B %Y') }}</li>
<li class="date">{{ ucfirst (utf8_encode ($post->created_at->formatLocalized('%A %d %B %Y'))) }}</li>
<li class="cat">
@foreach ($post->categories as $category)
<a href="{{ route('category', [$category->slug]) }}">{{ $category->title }}</a>
Expand Down

2 comments on commit 7aaf2ab

@GrCOTE7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:-)

Bonnes fin d'Année :-)

@bestmomo
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bonnes fêtes à toi aussi :-)

Please sign in to comment.