We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b3887a commit f23d84aCopy full SHA for f23d84a
lib/mapi/tnef.cpp
@@ -737,6 +737,14 @@ pack_result tnef_pull::g_attr(TNEF_ATTRIBUTE *r)
737
r->pvalue = pext->anew<uint64_t>();
738
if (r->pvalue == nullptr)
739
return EXT_ERR_ALLOC;
740
+ /*
741
+ * MS-OXTNEF v §2.1.3.3.4: "The encoding process is
742
+ * implementation-dependent". In practice, localtime is used by
743
+ * the TNEF writer. But it is not recorded what timezone that
744
+ * was done with. Luckily, ATTRIBUTE_ID_DATEMODIFY appears
745
+ * again later as a PR_LAST_MODIFICATION_TIME propval with
746
+ * PT_SYSTIME, which is known to be always UTC.
747
+ */
748
TRY(pext->g_uint16(&tmp_dtr.year));
749
TRY(pext->g_uint16(&tmp_dtr.month));
750
TRY(pext->g_uint16(&tmp_dtr.day));
0 commit comments