We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc6aaee commit 679d4e2Copy full SHA for 679d4e2
src/core/t-date.c
@@ -649,6 +649,7 @@
649
else if (IS_DATE(val)) tz = VAL_ZONE(val);
650
else tz = n * (60 / ZONE_MINS);
651
if (tz > MAX_ZONE || tz < -MAX_ZONE) return PE_BAD_RANGE;
652
+ if (secs == NO_TIME) secs = 0;
653
break;
654
case 5:
655
// date
src/tests/units/date-test.r3
@@ -80,7 +80,16 @@ Rebol [
80
--assert 28-Oct-2009/17:09:38 = d/utc
81
--assert 10 = d/hour
82
83
+ --test-- "issue 2369"
84
+ ;@@ https://github.com/rebol/rebol-issues/issues/2369
85
+ d: 28-Mar-2019
86
+ --assert not error? try [d/zone: 2]
87
+ --assert "28-Mar-2019/0:00+2:00" = mold d
88
+ d: 28-Oct-2009/10:09:38-7:00
89
90
+ --assert "28-Oct-2009/10:09:38+2:00" = mold d
91
+
92
===end-group===
93
-
94
95
~~~end-file~~~
0 commit comments