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 root@
2) Run the dpkg-reconfigure command to select your timezone
root@micro:~# 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. 
root@micro:~# 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.


Unknown 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.

Unknown 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

Unknown said...

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

Unknown said...

Valentines Week

topassociategs said...

TopAssociate provides high quality TopAssociate Investment research outsourcing,hedge fund research outsourcing,M&A research outsourcing,Private equity research outsourcing,Equity research outsourcing,Financial analyst outsourcing,Customised financial research,Fixed income research outsourcing,Financial research outsourcing.
Outsourced investment research

chieo said...

very nice post thnks admin
Mehndi Designs Images

Hd Wallpaper

Cool Backgrounds

Eid Mubarak pics

Good morning images

Unknown said...

I believe there are many more pleasurable opportunities ahead for individuals that looked at your site. Latest Hindi Songs Lyrics

Judith Johnson said...

in order to work with time when programming a program, knowledge of geography is not necessary. as for the programmers, they may not know geography, chemistry, and other sciences, but they should be able to write competently, with what the best essay writing service (that also propose writing essay that has a type "essay about yourself"/"essay about myself") will help because it is a service that can check already written papers and thus can help with practicing writing papers.

klinik aborsi said...

now we are here to help you to overcome your obstetric problems.

klinik raden saleh

Priya Rathod said...

I was looking at a portion of your posts on this site and I consider this site is really enlightening! Keep setting up..
DevOps Training in Hyderabad
DevOps Course in Hyderabad