TurnKey Linux Virtual Appliance Library

System Time in Webmin?

I'm running the latest LAMP stack on Amazon EC2.

I installed the time module in Webmin.

But when I go there it says "hwclock failed" on the main tab, and if I switch to the Change Timezone or Time Server Sync tabs, there is no content shown.

The server is on UTC whereas it should be on British Summer time.

Jeremy's picture

I've never used Webmin to do this

In Linux, you want the system time to be UTC, but if you need local time info then you need to update the timezone (so that the system adjusts the system time/UTC for the benefit of your apps).

But assuming that you want to update the time then you should be able to follow this (note the pics aren't showing - the original post with pics is here - in Spanish though...).

Perhaps that is what you have followed already though? If so it sounds like the system can't get access to the hwclock (or simulated hardware clock as it is running in a VPS). Perhaps you'd have better luck following the instructions for doing it via the commandline?

Bo's picture

Solution Steps and Option Settings

Steps to Solve "hwclock failed"

  1. Follow turnkey forum topic Configuring the timezone on TurnKey Linux to install webmin-time.
  2. Once webmin-time is installed, click System->System Time from main menu at top-left.
  3. Click "Module Config" from System Time menu at top-right.
  4. In the "Configuration" screen, under "For module System Time": "Configurable options for System Time": "System configuration": Set "System supports hardware time" to "No".
  5. Click "save" at bottom-left.
  6. Done.

Summary of Option Settings

Configurable options:

  • Acceptable number seconds of delay between system time and hardware time: 5 (N/A)
  • Default time server: north-america.pool.ntp.org (see other NTP's at: NTP Pool Server)
  • Only use NTP for time synchronization? Yes

System configuration options:

  • System supports hardware time: No
  • System time setting format: MMDDHHMMYYYY.SS
  • Timezone configuration method: Linux
  • Command-line flags for hwclock: None

Bo

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)