Skip to content

Commit c64eb81

Browse files
author
Alex Eulenberg
committed
correction made Jan 15
1 parent 8d3d941 commit c64eb81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/parse-datetime.y

+2-2
Original file line numberDiff line numberDiff line change
@@ -778,9 +778,9 @@ iso_8601_time:
778778
| tUNUMBER ':' tUDECIMAL_NUMBER o_zone_offset
779779
{
780780
hhmmss_decimal hhmm;
781-
hhmm.digits = $1.digits + $3.digits;
781+
hhmm.timespec.tv_sec = $1.value * 100 + $3.timespec.tv_sec;
782782
hhmm.timespec.tv_nsec = $3.timespec.tv_nsec;
783-
hhmm.timespec.tv_sec += $1.value * 100 + $3.timespec.tv_sec;
783+
hhmm.digits = $1.digits + $3.digits;
784784
decimal_to_time (pc, hhmm);
785785
pc->meridian = MER24;
786786
}

0 commit comments

Comments
 (0)