Fixed a deprecation error in constructor.d

This commit is contained in:
Ferdinand Majerech 2014-07-19 03:50:09 +02:00
parent 424035601c
commit 69e8c71516

View file

@ -618,7 +618,7 @@ SysTime constructTimestamp(ref Node node)
tzHours = to!int(captures[1][1 .. $]);
}
auto tzMinutes = (!captures[2].empty) ? to!int(captures[2][1 .. $]) : 0;
auto tzOffset = sign * (60 * tzHours + tzMinutes);
const tzOffset = dur!"minutes"(sign * (60 * tzHours + tzMinutes));
return SysTime(DateTime(year, month, day, hour, minute, second),
FracSec.from!"hnsecs"(hectonanosecond),