зеркало из https://github.com/github/octobox.git
Use users timezone for timestamp
This commit is contained in:
Родитель
9f7c4a76ba
Коммит
2fbb67ca75
1
Gemfile
1
Gemfile
|
@ -8,6 +8,7 @@ gem 'faraday-http-cache'
|
|||
gem 'faraday_middleware'
|
||||
gem 'jquery-rails'
|
||||
gem 'kaminari'
|
||||
gem 'local_time'
|
||||
gem 'octicons_helper'
|
||||
gem 'octokit'
|
||||
gem 'omniauth-github'
|
||||
|
|
10
Gemfile.lock
10
Gemfile.lock
|
@ -51,6 +51,13 @@ GEM
|
|||
byebug (9.0.6)
|
||||
codeclimate-test-reporter (1.0.4)
|
||||
simplecov
|
||||
coffee-rails (4.2.1)
|
||||
coffee-script (>= 2.2.0)
|
||||
railties (>= 4.0.0, < 5.2.x)
|
||||
coffee-script (2.4.1)
|
||||
coffee-script-source
|
||||
execjs
|
||||
coffee-script-source (1.12.2)
|
||||
concurrent-ruby (1.0.4)
|
||||
crack (0.4.3)
|
||||
safe_yaml (~> 1.0.0)
|
||||
|
@ -91,6 +98,8 @@ GEM
|
|||
listen (3.0.8)
|
||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||
rb-inotify (~> 0.9, >= 0.9.7)
|
||||
local_time (1.0.3)
|
||||
coffee-rails
|
||||
lograge (0.4.1)
|
||||
actionpack (>= 4, < 5.1)
|
||||
activesupport (>= 4, < 5.1)
|
||||
|
@ -249,6 +258,7 @@ DEPENDENCIES
|
|||
jquery-rails
|
||||
kaminari
|
||||
listen (~> 3.0.5)
|
||||
local_time
|
||||
lograge
|
||||
mocha
|
||||
newrelic_rpm
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
//= require jquery
|
||||
//= require jquery_ujs
|
||||
//= require turbolinks
|
||||
//= require local_time
|
||||
//= require bootstrap-sprockets
|
||||
//= require_tree .
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
</td>
|
||||
<td class='notification-date'>
|
||||
<small class='text-muted'>
|
||||
<%= notification.updated_at.localtime.to_s(:short) %>
|
||||
<%= local_time(notification.updated_at, :short) %>
|
||||
</small>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Загрузка…
Ссылка в новой задаче