Skip to content

Commit 047b96e

Browse files
authored
Fix zip file time
1 parent 5e9cddf commit 047b96e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/yup_core/zip/yup_ZipFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ struct ZipFile::Builder::Item
687687

688688
static void writeTimeAndDate (OutputStream& target, Time t)
689689
{
690-
target.writeShort ((short) (t.getSeconds() + (t.getMinutes() << 5) + (t.getHours() << 11)));
690+
target.writeShort ((short) ((t.getSeconds() >> 1) + (t.getMinutes() << 5) + (t.getHours() << 11)));
691691
target.writeShort ((short) (t.getDayOfMonth() + ((t.getMonth() + 1) << 5) + ((t.getYear() - 1980) << 9)));
692692
}
693693

0 commit comments

Comments
 (0)