It is possible to do this in Homestead 2.x,
After you initialise a homestead folder, an after.sh
file will be created along-side your homestead.yaml file in ~/.homestead
.
This file will be run after the provisioning of the new VM. So all you need to do is add:
ln -sf /usr/share/zoneinfo/Pacific/Auckland /etc/localtime
into the file and provision the VM. Done. (You'll need to adjust the path for your own locale).
Run ls /usr/share/zoneinfo
to list all the timezones you can use. :)
More info on that here: http://www.how2centos.com/centos-change-timezone/
Thanks this works great, and also thanks for putting in the command to list the timezones.
Wish I could bookmark this answer!
Cheers
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community