Skip to content

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:

  1. In your project editor window, click on “Add file” on the top of the project sidebar.
  2. Select “Blank file”, and name the file latexmkrc.
  3. Add the following line to the file 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 \currenttime from the datetime package) in the PDF should then give values local to the specified time zone.

An option to set the project's preferred timezone as a project setting will be provided in future.

Overleaf guides

LaTeX Basics

Mathematics

Figures and tables

References and Citations

Languages

Document structure

Formatting

Fonts

Presentations

Commands

Field specific

Class files

Advanced TeX/LaTeX