Tag Info

Hot answers tagged

27

"Knowing the current minute" requires having an accurate clock. "Knowing the current hour" requires having an accurate clock and knowledge of which time zone currently contains the device. So, getting the minute right is easier than getting the minute and the hour. Set the time zone to where you're currently located. The device doesn't contain a GPS, so ...


16

Edit: After a few days of using the method I originally posted, I discovered that the RealTimeIsUniversal flag, as an unmaintained leftover from Windows NT, is actually pretty flaky and impractical in general. Every so often, at seemingly random intervals, the Windows clock would revert from UTC to local time, which was extremely annoying (and resulted in a ...


8

The time zone is an artefact of conversion from "instants" to a human-readable date-and-time in some calendar. Computers do not like human-readable formats (not as much as humans, at least), so they usually store instants in a zone-neutral format. For instance, in the NTFS file system, time stamps are stored in UTC. Hence, the file time modification is ...


4

Click on the clock and choose "Change date and time settings..." Click the "Internet Time" tab. Is it set up to synchronize the time with time.windows.com? If it is, try unchecking that box, saving the settings, and rebooting to see if that fixes your problem. If it isn't checked already, try checking it and making sure it is set to time.windows.com. Here ...


4

Not all versions of cron support running jobs using a time zone other than the system's. If yours does, it's likely that the specification should be TZ=GMT or TZ=UTC (without the angle brackets). In some cases, the variable would be CRON_TZ. The best thing to do is check the documentation specific to the particular system. See man 5 crontab.


3

Check out GeoSense for Windows which claims to be able to provide a semi-accurate geo-location device for your computer. This will require some kind of internet connection (WiFi preferred) to be able to get your location. I would hope that once Windows 7 has a vague idea of where you are, by using this service, then it will update your timezone ...


3

Linux usually uses a tool called hwclock to interface with the hardware clock. Depending on your distribution, you should be able to modify the system startup scripts to make hwclock reread and store the time using current system timezone. In Ubuntu, you can enable local time mode by editing /etc/default/rcS to: UTC=no I know, not exactly what you asked ...


3

(Copying my comment as an answer, since it turned out to be the solution; I guessed right.) So cron jobs are being scheduled in UTC (Europe/Paris is at a one hour offset from UTC). The Vixie cron man page says: The daemon will use, if present, the definition from /etc/timezone for the timezone. What's in /etc/timezone? Have you modified ...


2

Windows uses local time by default, while Linux uses UTC time. These links may help: Does Windows 7 support UTC as BIOS time? https://help.ubuntu.com/community/UbuntuTime#Multiple_Boot_Systems_Time_Conflicts


2

You might look at this document: http://msdn.microsoft.com/en-us/library/ee488025%28v=winembedded.60%29.aspx for example set: [HKEY_LOCAL_MACHINE\Time Zones] "@": REG_SZ @="Eastern Standard Time" where: "Eastern Standard Time" is the name that should match entry in the registry tree: [HKEY_LOCAL_MACHINE\Time Zones\Eastern Standard Time] Its ...


2

http://www.debian-administration.org/articles/213 says the simple way to edit your timezone is to use the /usr/bin/tzselect command. ... Once you've set your timezone you might wish to change the UTC setting, upon Debian machines you can find that in the file /etc/default/rcS. Although changing this will require a reboot.


2

This Perl script should do what you need (assuming you don't need precision to the 10-6 of a second): #!/usr/bin/perl -w use strict; use Math::Round; ## Get current date (epoch) my $date=time(); ## Get the seconds offset, rounding to the nearest second my $ntp=nearest(0.1,`ntpdate -q $ARGV[0] | gawk '(\$NF~/sec/){print \$(NF-1)}'`); ## Get the server's ...


2

I think setting the registry entry from this article will allow your time to display properly. Per the article, create a registry file in Notepad with the following in it: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] “RealTimeIsUniversal”=dword:00000001 Open the .reg file you just created, ...


2

At the command line, you could use: watch "echo "Local Time: ";date;echo "";echo "GMT: ";date --utc" Edit: Here's an example taken from Wikipedia, showing how to use various Timezones: OLDTZ=$TZ export TZ=GMT; echo "GMT: `date +\"%F %R (%Z)\"`" GMT: 2008-10-31 12:30 (GMT) export TZ=Europe/Stockholm; echo "Stockholm: `date ...


2

Another process is interfering with your timezone settings. There's a pretty concise answer to this at "what could cause Apache's time/timezone to change intermittently?". This can be particularly painful with Django -- as it doesn't handle juggling timezones very well -- and as such there are some good explanations in some Django-specific questions: Django ...


2

There's nothing wrong with it, but have you considered displaying multiple timezones? Right click on the time in the System Tray. Select Adjust Date/Time Click on the Additional Clocks tab. Here you can create clocks for one or two extra time zones. Although Vista will still show only your local time in the System Tray, when you put ...


2

There is no problem changing the time zone frequently. The only time changing the system time becomes a problem is when you are connected to a domain and you have active Kerberos tickets issued, as the time on the ticket must match the time on the Kerberos Key Distribution Center (usually a domain controller). Even in this instance, changing the time zone ...


2

As an addendum, note that while file modification dates from NTFS or other filesystems may be timezone aware, EXIF data (eg date/time a picture was taken with your camera) may very well not be, and may not be stored as UTC either so can prove tricky to convert. Just a thought, in case the file create / modify / EXIF date/time don't seem to agree. I seem to ...


1

I have found a useful website here which shows the local time next to each other: http://www.timeanddate.com/worldclock/meeting.html Example: http://www.timeanddate.com/worldclock/meetingtime.html?day=23&month=2&year=2010&p1=47&p2=37&p3=179&p4=-1


1

According to the docs of 7Zip, the archive formats tar, gzip2 and 7z (7Zip) use UTC timestamps. So these should work properly across timezones. However, in practice this will probably only work if the filesystems used also use UTC internally (such as most Unix filesystems and NTFS).


1

There is a utility in these MS support tools called TimeZone.exe that should fit the bill. There's not a command in native XP for this. It is in the registry in HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Time Zones But I couldn't tell you what the names should be, and if they are locked out of date/time I'm guessing they are locked ...


1

Is your user an administrator user? Alternatively if all else fails you can run the following command that will remove the file that holds that preference (among others though) to allow you to reset it if the permissions on that file are not permitting you from setting it: sudo rm /Library/Preferences/.GlobalPreferences.plist


1

Could you explain exactly which sort of "month view" you've made publicly available? (A URL would be ideal :) Are you looking at actual web pages, or is this a calendar feed of some description? Single occurrence events are stored as UTC, so that may be what you're seeing if you're looking at relatively raw data. If you're embedding the calendar using an ...


1

Update your HTML code in [Embed This Calendar] From your site.google, Remove your previous "Public Google calendars" Go to Calendar Settings Select Calendars tab Click your calendar account (your Gmail) Click "Customize the color, size, and other options" Check mark all calendars Select "Time Zone" Update HTMT (locate on top right corner) Copy all of the ...


1

You could launch a number of xclock instances from the command line or from a script like this, prefixing each command with the desired timezone (TZ) for that clock. TZ=JST-9 xclock & TZ=MET-1METDST xclock & Those will give you the times in Japan and Germany. See the xclock(1) man page or execute xclock -help for more options.


1

Assuming you are using Ubuntu 10.10 or previous version . The GNOME clock applet can show two times in the drop down. Right click on the clock and select "Preferences." Goto the "Locations" tab and press "add." Then, select "whatever" from the "Timezone" list.


1

Ilius, I think I've come across this problem before. First try to set the system time correctly. (ntp/whatever) Then, run hwclock --systohc This should reset your hwclock to the system time, and should be persistent across reboot. would you let us know if it works out?


1

You've got HARDWARECLOCK set to UTC in your rc.conf. I think that's the culprit. If you're in dual boot situation with windows you should have it set to "localtime" (see arch installation docs IIRC). Another cause of your problem could be messed startup scripts because arch should perform "--hctosys" and "--systohc" during startups/shutdowns. In linux you ...


1

There's a section titled QUOTING in man bash. I suggest you read it, or the Bash Reference Manual on quoting. A correct command line would be: DATE=$( date --date="TZ=\"Asia/Taipei\" $TIME" +%F\ %H:%M ) Using $( ) prevents some quoting issues that occur with backticks. You need to double-quote both the time zone (apparently for formatting reasons), and ...


1

Like the previous two answers said, you're running in to time zone issues. On top of that however, your Raspberry Pi doesn't keep track of time when it's powered off like your desktop does, the battery was left out as it would have raised the price of the unit significantly. You'll want to configure your Raspberry Pi to check in with an NTP server upon boot ...



Only top voted, non community-wiki answers of a minimum length are eligible