mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-09 18:28:10 -05:00
Don't trim time from start and end dates
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user