Changing Timezones in Ubuntu

October 18, 2007 @ 01:45 PM | posted by carmelyne

(last updated: 03.18.08)

What time is it?


============================

Update: [March 18, 2008] This article applies specifically for Slicehost VPS /slice hence the soft reboot step which is only available via the slicehost vps control panel.

============================

Example below changes timezone to Chicago

1
2
3
cd /usr/share/zoneinfo
mv /etc/localtime /etc/localtime-old
ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime

/usr/share/zoneinfo/ - has all the timezones that you need.

Then a Soft Reboot...

[ Last updated: March 18, 2008 @ 11:15 AM ]


1 Response to...
“Changing Timezones in Ubuntu”

  1. Michael:

    Hey, I have a virtual ubuntu box through http://quantact.com/

    While I can reboot the server via ssh, or using their control panel thing, I was wondering how to do a soft reboot that would apply the timezone changes (and thus make my apache log files correct) without actually rebooting, especially as it's a web, mail, and FTP server.

    Thanks.



    Posted:

Sorry, comments are closed for this article.

Snippets of 06/24/07

Rails 'A'..'Z' Paginate

1
2
3
4
5
6
7
8
9
10
11
# Starts with 'A'..'Z' Paginate / model
def self.sort(sort)
  if sort
    find(:all, :conditions => ['name LIKE ?', "#{sort}%"])
  else
    find(:all, :order => 'name')
  end  
end

# index action / controller
@models = Model.sort(params[:sort]) 

Recent Posts...

RailsConf 2006
I heart devChix