Support the ongoing development of Laravel.io →
Installation Configuration
Last updated 2 years ago.
0

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/

Last updated 9 years ago.
0

Thanks this works great, and also thanks for putting in the command to list the timezones.

Wish I could bookmark this answer!

Cheers

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Schnoop schnoop Joined 27 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.