From 0b13b7c3b62d79c2d14580b49bd074d00ccd04b5 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Mon, 19 May 2025 20:14:30 +0200 Subject: [PATCH] Change "Yesterday" to "Today" on the map page. --- CHANGELOG.md | 1 + app/views/map/index.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a224007..5e577249 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Docker image is now using slim image to introduce some memory optimizations. - The trip page now looks a bit nicer. +- The "Yesterday" button on the map page was changed to "Today". #1215 # 0.26.3 - 2025-05-18 diff --git a/app/views/map/index.html.erb b/app/views/map/index.html.erb index 18368fa2..011bf06a 100644 --- a/app/views/map/index.html.erb +++ b/app/views/map/index.html.erb @@ -42,8 +42,8 @@
- <%= link_to "Yesterday", - map_path(start_at: Date.yesterday.beginning_of_day, end_at: Date.yesterday.end_of_day, import_id: params[:import_id]), + <%= link_to "Today", + map_path(start_at: Time.current.beginning_of_day, end_at: Time.current.end_of_day, import_id: params[:import_id]), class: "btn btn-neutral hover:btn-ghost" %>