Skip to content

Commit 06c1c2f

Browse files
jdunkerleyFrizi
authored andcommitted
JavaScript uses 0-11 for month. (#13063)
Fix issue with timeseries in scatterplot. ![image](https://github.com/user-attachments/assets/3f1a5bdb-d191-49b4-8574-2170793aa95d)
1 parent 303c1de commit 06c1c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/gui/src/project-view/components/visualizations/ScatterplotVisualization.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ const SHAPE_TO_SYMBOL: Record<string, d3.SymbolType> = {
148148
const createDateTime = (x: DateObj) => {
149149
const dateTime = new Date()
150150
if (x.day != null) dateTime.setDate(x.day)
151-
if (x.month != null) dateTime.setMonth(x.month)
151+
if (x.month != null) dateTime.setMonth(x.month - 1)
152152
if (x.year != null) dateTime.setFullYear(x.year)
153153
if (x.hour != null) dateTime.setHours(x.hour)
154154
if (x.minute != null) dateTime.setMinutes(x.minute)

0 commit comments

Comments
 (0)