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.
parent
5c9aa2b7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- Gemfile 1 ajout, 0 suppressionGemfile
- Gemfile.lock 10 ajouts, 0 suppressionGemfile.lock
- app/assets/javascripts/application_public.js 1 ajout, 0 suppressionapp/assets/javascripts/application_public.js
- app/views/stream_entries/_detailed_status.html.haml 1 ajout, 1 suppressionapp/views/stream_entries/_detailed_status.html.haml
- app/views/stream_entries/_simple_status.html.haml 1 ajout, 1 suppressionapp/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' | ||
... | ... |
Veuillez vous inscrire ou vous se connecter pour commenter