fleetmap-reports 1.0.971 → 1.0.972
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/util/utils.js +3 -1
package/package.json
CHANGED
package/src/util/utils.js
CHANGED
|
@@ -109,6 +109,8 @@ function convertToFeature (geofence) {
|
|
|
109
109
|
function getDates (startDate, endDate, timezone) {
|
|
110
110
|
const dates = []
|
|
111
111
|
let currentDate = new Date(startDate.getFullYear(), startDate.getMonth(), startDate.getDate(), 12, 0, 0, 0)
|
|
112
|
+
const _endDate = new Date(endDate.getFullYear(), endDate.getMonth(), endDate.getDate(), 23, 59, 59, 0)
|
|
113
|
+
|
|
112
114
|
if (!isClientSide() && timezone) {
|
|
113
115
|
const startDateUserTimezone = convertFromUTC(startDate, timezone)
|
|
114
116
|
currentDate = new Date(startDateUserTimezone.getFullYear(), startDateUserTimezone.getMonth(), startDateUserTimezone.getDate(), 12, 0, 0, 0)
|
|
@@ -118,7 +120,7 @@ function getDates (startDate, endDate, timezone) {
|
|
|
118
120
|
date.setDate(date.getDate() + days)
|
|
119
121
|
return date
|
|
120
122
|
}
|
|
121
|
-
while (currentDate <=
|
|
123
|
+
while (currentDate <= _endDate) {
|
|
122
124
|
dates.push(currentDate)
|
|
123
125
|
currentDate = addDays.call(currentDate, 1)
|
|
124
126
|
}
|