ref: dbc0931a5ca5178ad9839819ea7965f29c6a1ba6
parent: bd2470847c92b37a4106083bf6767e2f74f15dd3
author: Konstantin Baladurin <[email protected]>
date: Sun Jul 8 21:33:16 EDT 2018
Fix Date.prototype.setHours
--- a/jsdate.c
+++ b/jsdate.c
@@ -629,7 +629,7 @@
{
double t = LocalTime(js_todate(J, 0));
double h = js_tonumber(J, 1);
- double m = js_optnumber(J, 2, HourFromTime(t));
+ double m = js_optnumber(J, 2, MinFromTime(t));
double s = js_optnumber(J, 3, SecFromTime(t));
double ms = js_optnumber(J, 4, msFromTime(t));
js_setdate(J, 0, UTC(MakeDate(Day(t), MakeTime(h, m, s, ms))));