Sunday, March 25, 2012

Mirco Cloud Foundry - Set the Local Timezone

Would you like your Mirco Cloud Foundry to use a local timezone instead of UTC? Hopefully this propagates to the default timestamp display of whatever programming language you are using.  I wanted this for a Java application I've been playing around with.  Here are the simple steps I used.

1) Log in to Micro Cloud Foundry using the IP Address displayed on the console as root using the password you supplied when setting up MCF.
ssh [email protected]
2) Run the dpkg-reconfigure command to select your timezone
[email protected]:~# dpkg-reconfigure tzdata
You should get an ASCII-GUI that let's you select the timezone.

When finished you should see output like this:
Current default time zone: 'America/Los_Angeles'
Local time is now:      Sun Mar 25 13:01:18 PDT 2012.
Universal Time is now:  Sun Mar 25 20:01:18 UTC 2012. 
[email protected]:~# date
Sun Mar 25 13:01:30 PDT 2012
3) Restart your applications.

Once I restarted the Java application, this time it picked up the local timezone as the default
output for a
instead of the UTC timezone.


Sam Maron said...

Nowadays, many cloud storage vendors are using advance data encryption techniques, antivirus scanning procedures, data backup techniques, and other security solutions that a personal computing environment cannot offer. By keeping important data in the data room services, you can save it from all the major threats such as environmental threats, unauthorized users, technical failures and malicious software.

Toby Valentine said...

New technologies are being created in response to this threat, both to negate data security risk and improve the digital customer experience.
virtual data room comparison

Devi.Angularjs said...

I have read your blog its very attractive and impressive. I like it your blog.

Java Training in Chennai Java Training in Chennai | Core Java Training in Chennai Java Training in Chennai

Online Java Training Java 8 Online Training | Java J2EE Online Training | JavaEE Training Institute in Chennai

Haxie 100 said...

New Year 2017 Wishes
New Year 2017 Images
New Year 2017 Quotes