If you need to display the date/time local to your timezone, you can change the TZ
(timezone) environment variable using a custom latexmkrc
file:
latexmkrc
(without extensions).
latexmkrc
:
$ENV{'TZ'}='Asia/Kuala_Lumpur';
or whichever timezone required. Here's a list of supported time zones for reference.
Dates and times (e.g. \today
and \DTMcurrenttime
from the datetime2
package) in the PDF should then give values local to the specified time zone.