2

The CS50 Appliance 19 Manual says:

How to Change Time Zone

If you don’t live in Cambridge, Massachusetts, USA, you may want to change the appliance’s timezone. Select Menu > Administration > Date & Time. Click the Time Zone tab, select the nearest city in your time zone, then click OK, leaving System clock uses UTC checked.

But when I go to Menu > Administration, I can't find Date & Time. Rather, there's this System-Config-Date. It does not do anything when I click it.

1 Answer 1

2

Appliance Version 19

Well I didn't find a UI way, but there's a command line way if you're willing. Note: This is using version 19 of the CS50 Appliance.

1) Open up a Terminal session.

2) Type cd /usr/share/zoneinfo and hit Enter.

3) Type ls and hit Enter to see:

Screenshot of terminal with view of /usr/share/zoneinfo

4) View the various options available to you. Note that the blue text (like Africa and America) are folders with more options. For instance, in America is:

Screenshot of terminal with view of /usr/share/zoneinfo/America

5) When you've found a file corresponding to your time zone (I'm using New_York in the America folder as an example) type sudo ln -sf New_York /etc/localtime and hit Enter to set your local time.

6) Type date and hit Enter to verify it worked.

Let me know if you need more clarification or specific instructions to what time zone you're in.

Source

Appliance Version 20

1) Click the CS50 Menu, select Settings Manager.

Screenshot of CS50 menu

2) Select Time and Date under the System heading.

Screenshot of Settings Manager

3) Click the Unlock button and enter in the system password (crimson by default).

Screenshot of Time and Date settings

4) Select Time zone.

4b) Note: I tried selecting "Keep synchronized with Internet servers" for the Configuration, and while it gave me an error when trying to install NTP support, it still adjusted the clock to the correct time, so might be worth a shot.

5) Adjust the time if needed.

6) Hit close.

4
  • What is sudo ln?
    – RexYuan
    Commented Oct 21, 2014 at 2:02
  • 1
    Sudo - A command you can add to the beginning of a command to tell the terminal to execute it with admin rights. In most cases, it'll ask you for a password afterwards (I honestly don't know why it doesn't here). ln - stands for "link", meaning to link one file to another. Think of it like a Windows shortcut. This is preferable to just copying the file over because if the appliance updates its timezone definitions, your local one will update as well.
    – Melde
    Commented Oct 21, 2014 at 2:16
  • I cannot make it work in the new appliance. The folder with the cities exists, and the command line accepts the Sudo command, but time is changed to UTC time, not to the time zone I asked for (GMT-3).
    – Federico
    Commented Jan 7, 2015 at 17:34
  • 1
    @Federico: I added GUI instructions for Appliance 20, I'd try that instead.
    – Melde
    Commented Jan 14, 2015 at 1:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .