I have a virtual machine that is set to PST that a couple of colleagues have in different time-zones.

If I wanted to change the time-zone to EST and GMT , what do I need to do?

Best Answer


Use timedatectl

sudo timedatectl set-timezone <timeszone>

Examples.

  • Timezone as EST

    sudo timedatectl set-timezone EST
    
  • Timezone as UTC

    sudo timedatectl set-timezone UTC
    
  • Listing all valid Timezones

    timedatectl list-timezones
    

This command is perfect for automation scripts since it doesn't require any user interaction while compared to the other given answer based on dpkg-reconfigure tzdata .