To change timezone in debian, you can use the following 2 steps.
1. Edit /etc/timezone with your desired timezone such as America/New_York
2. run the following command as root or use sudo
dpkg-reconfigure tzdata
If you want to run it non-interactively so you can script it, use the following command:
dpkg-reconfigure -f noninteractive tzdata