Skip to content
This repository was archived by the owner on May 7, 2019. It is now read-only.

Commit bfd9efd

Browse files
Use user timezone in /a/users
1 parent fe1dfdf commit bfd9efd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Please view this file on the master branch, on stable branches it's out of date.
33
v 1.0.2
44
- Add email to /u/preferences.
55
- Fix broken view counter.
6+
- Make user created_at timestamp use user timezone in /a/users.
67

78
v 1.0.1
89
- Fixed missing translation for deleting users.

resources/views/admin/users.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</td>
3030
<td><a href="mailto:{{ $user->email }}"
3131
title="Send an email to {{ $user->name }}">{{ $user->email }}</a></td>
32-
<td>{{ $user->created_at }}</td>
32+
<td>{{ $user->created_at->copy()->tz(Auth::user()->preferences->timezone) }}</td>
3333
<td>{{ Cache::get('uploads_count:' . $user->id) }} ({{ App\Helpers::formatBytes(Cache::get('uploads_size:' . $user->id)) }})</td>
3434
<td>
3535
<ul class="list-unstyled list-inline list-noborder">

0 commit comments

Comments
 (0)