Don't trim time from start and end dates

This commit is contained in:
Eugene Burmakin
2025-01-24 16:37:28 +01:00
parent 01275d0d2e
commit 5bd6a6c072
2 changed files with 6 additions and 2 deletions

View File

@@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Trips are now store their paths in the database independently of the points.
- Trips are now being rendered on the map using their precalculated paths instead of list of coordinates.
### Changed
- Requesting photos on the Map page now uses the start and end dates from the URL params. #589
# 0.23.5 - 2025-01-22
### Added

View File

@@ -218,8 +218,8 @@ export default class extends Controller {
}
const urlParams = new URLSearchParams(window.location.search);
const startDate = urlParams.get('start_at')?.split('T')[0] || new Date().toISOString().split('T')[0];
const endDate = urlParams.get('end_at')?.split('T')[0] || new Date().toISOString().split('T')[0];
const startDate = urlParams.get('start_at') || new Date().toISOString();
const endDate = urlParams.get('end_at')|| new Date().toISOString();
await fetchAndDisplayPhotos({
map: this.map,
photoMarkers: this.photoMarkers,