We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e9cddf commit 047b96eCopy full SHA for 047b96e
1 file changed
modules/yup_core/zip/yup_ZipFile.cpp
@@ -687,7 +687,7 @@ struct ZipFile::Builder::Item
687
688
static void writeTimeAndDate (OutputStream& target, Time t)
689
{
690
- target.writeShort ((short) (t.getSeconds() + (t.getMinutes() << 5) + (t.getHours() << 11)));
+ target.writeShort ((short) ((t.getSeconds() >> 1) + (t.getMinutes() << 5) + (t.getHours() << 11)));
691
target.writeShort ((short) (t.getDayOfMonth() + ((t.getMonth() + 1) << 5) + ((t.getYear() - 1980) << 9)));
692
}
693
0 commit comments