Use local_time gem for timezone replacement (#2174)
For the 'time ago' value of stream entry simple statuses and the timestamp value of detailed statuses - output their UTC value and use the browser timezone to convert locally.
Showing
- Gemfile 1 addition, 0 deletionsGemfile
- Gemfile.lock 10 additions, 0 deletionsGemfile.lock
- app/assets/javascripts/application_public.js 1 addition, 0 deletionsapp/assets/javascripts/application_public.js
- app/views/stream_entries/_detailed_status.html.haml 1 addition, 1 deletionapp/views/stream_entries/_detailed_status.html.haml
- app/views/stream_entries/_simple_status.html.haml 1 addition, 1 deletionapp/views/stream_entries/_simple_status.html.haml
... | ... | @@ -35,6 +35,7 @@ gem 'http_accept_language' |
gem 'httplog' | ||
gem 'kaminari' | ||
gem 'link_header' | ||
gem 'local_time' | ||
gem 'nokogiri' | ||
gem 'oj' | ||
gem 'ostatus2', '~> 1.1' | ||
... | ... |
Please register or sign in to comment