Skip to content

Commit 78d1a00

Browse files
committed
oops
1 parent d01f447 commit 78d1a00

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

replication/row_event.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,23 +1336,23 @@ func (e *RowsEvent) decodeValue(data []byte, tp byte, meta uint16, isPartial boo
13361336
d := i64 / 1000000
13371337
t := i64 % 1000000
13381338
years := int(d / 10000)
1339-
months := (d % 10000) / 100
1339+
months := int(d%10000) / 100
13401340
days := int(d % 100)
13411341
hours := int(t / 10000)
1342-
minutes := int((t % 10000) / 100)
1342+
minutes := int(t%10000) / 100
13431343
seconds := int(t % 100)
13441344
if !e.parseTime || months == 0 || days == 0 {
13451345
v = fmt.Sprintf("%04d-%02d-%02d %02d:%02d:%02d",
13461346
years, months, days, hours, minutes, seconds)
13471347
} else {
13481348
v = e.parseFracTime(fracTime{
13491349
Time: time.Date(
1350-
int(d/10000),
1351-
time.Month((d%10000)/100),
1352-
int(d%100),
1353-
int(t/10000),
1354-
int((t%10000)/100),
1355-
int(t%100),
1350+
years,
1351+
time.Month(months),
1352+
days,
1353+
hours,
1354+
minutes,
1355+
seconds,
13561356
0,
13571357
time.UTC,
13581358
),

0 commit comments

Comments
 (0)