<p><em>The --set-utc (-Z) option causes patch to set a patched file’s modification and access times to the timestamps given in context diff headers.</em><br>
=><br>
behavior of diff file without date header</p>
<p><em>patch normally refrains from setting a file’s timestamps if the file’s original last-modified timestamp does not match the time given in the diff header, of if the file’s contents do not exactly match the patch.</em><br>
=><br>
behavior of diff file with date header</p>
<p>See <a href="https://www.gnu.org/software/diffutils/manual/html_node/Patching-Timestamps.html#Patching-Timestamps" rel="nofollow">https://www.gnu.org/software/diffutils/manual/html_node/Patching-Timestamps.html#Patching-Timestamps</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/issues/788?email_source=notifications&email_token=ADLPZU2FFJPF5RVKK4EOLX3P7DLBBA5CNFSM4H7REH7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ2VBLY#issuecomment-511004847">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUZWJCSQN5VNBXRWU6TP7DLBBANCNFSM4H7REH7A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZU4R4BSI2J255YHZT2DP7DLBBA5CNFSM4H7REH7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ2VBLY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/issues/788?email_source=notifications\u0026email_token=ADLPZU2FFJPF5RVKK4EOLX3P7DLBBA5CNFSM4H7REH7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ2VBLY#issuecomment-511004847",
"url": "https://github.com/rpm-software-management/rpm/issues/788?email_source=notifications\u0026email_token=ADLPZU2FFJPF5RVKK4EOLX3P7DLBBA5CNFSM4H7REH7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ2VBLY#issuecomment-511004847",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>