Skip to content
Commit 786e0a78 authored by Wolfgang Bauer's avatar Wolfgang Bauer
Browse files

KJS: treat time correctly as localtime in the Date() constructor

Commit 48dd1fc5 introduced a bug:
It factors out the code to convert a time specification to an actual
time value into the function makeTimeFromList().
But in that function makeTime(&t, ms, true) is called, whereas the
original code called makeTime(&t, ms, false) for the constructor.

This patch fixes it by passing the "utc" parameter to makeTime() instead
of "true".

BUG: 335556
FIXED-IN: 3.13.3
REVIEW: 118947
(cherry picked from commit 0137c691)
parent ac5d3d2f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment