Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UTC, local time, NTP, amarok, wtf? help please!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
swooshOnLn
l33t
l33t


Joined: 28 Feb 2006
Posts: 741
Location: Charlotte, North Carolina

PostPosted: Sun Apr 09, 2006 2:59 am    Post subject: UTC, local time, NTP, amarok, wtf? help please! Reply with quote

Here is my situation:

I use amarok to listen to mp3's, and in amarok, there is an option to use last.fm, which is in short, a way to keep track of played mp3's. However, amarok submits these mp3s with the UTC time stamp. The UTC time on my computer is 5 hours ahead of my local time. I need to change it so that my UTC time syncs up with my local time. People have suggested "emerg[ing] ntp" for help, but I cannot figure out how to use it. Can somebody please help me here? How do I change the UTC?

some helpfull stuff:
Code:

tux swooshonln # date
Sat Apr  8 22:54:28 EDT 2006
tux swooshonln # hwclock
Sat Apr  8 22:54:35 2006  -0.728519 seconds


UTC time shows: (via clock on gnome)
Code:

Sun Apr 9 2:44:28 2006


I do have ntp set up, and my /etc/ntp.conf file is configure like this: (have no idea if it works or not)
Code:

restrict 127.0.0.1 nomodify
# Allow ntp to automatically correct predictable clock drift
driftfile /var/lib/ntp/ntp.drift
# logfile defaults to var/log/messages
logfile /var/log/ntp.log
server 0.north-america.pool.ntp.org
server 1.north-america.pool.ntp.org
server 2.north-america.pool.ntp.org


any help would be awsome!
_________________
"WARNING: you may LOL"

This is my font size, color, and signature. It will change to whatever I pick. How cool is that?
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sun Apr 09, 2006 3:34 am    Post subject: just a thought Reply with quote

what if your system clock was in utc?

I fail to see why them being in UTC is a problem though...
Back to top
View user's profile Send private message
swooshOnLn
l33t
l33t


Joined: 28 Feb 2006
Posts: 741
Location: Charlotte, North Carolina

PostPosted: Sun Apr 09, 2006 3:56 am    Post subject: Reply with quote

for instance, when I check the the last song I listend to at last.fm, it shows that I played it tomrrow. Its a pet peeve I guess, because It wasnt played tomorrow, it was played... a few secconds ago??
_________________
"WARNING: you may LOL"

This is my font size, color, and signature. It will change to whatever I pick. How cool is that?
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Sun Apr 09, 2006 4:04 am    Post subject: Reply with quote

Would it alter the submitted time if you set your locale in kcontrol?
Back to top
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Sun Apr 09, 2006 4:05 am    Post subject: Reply with quote

Please make sure you have followed everything from: http://gentoo-wiki.com/NTP
Back to top
View user's profile Send private message
swooshOnLn
l33t
l33t


Joined: 28 Feb 2006
Posts: 741
Location: Charlotte, North Carolina

PostPosted: Sun Apr 09, 2006 4:22 am    Post subject: Reply with quote

whats kcontrol? is that KDE? I am on Gnome.
_________________
"WARNING: you may LOL"

This is my font size, color, and signature. It will change to whatever I pick. How cool is that?
Back to top
View user's profile Send private message
DarkMind
Guru
Guru


Joined: 18 Dec 2003
Posts: 525
Location: Santiago, Chile

PostPosted: Sun Apr 09, 2006 4:45 am    Post subject: Reply with quote

swooshOnLn wrote:
whats kcontrol? is that KDE? I am on Gnome.


kcontrol is the kde's control panel
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Sun Apr 09, 2006 4:53 am    Post subject: Reply with quote

Try changing the time zone on your last.fm settings page: http://www.last.fm:80/settings/website.php
Back to top
View user's profile Send private message
Peregrine
n00b
n00b


Joined: 16 Jun 2003
Posts: 67

PostPosted: Sun Apr 09, 2006 4:56 am    Post subject: Reply with quote

For the situation you described, NTP isn't going to help you. NTP (Network Time Protocol) is a way to keep the time on your PC correctly sync'd.

UTC, also known as Coordinated Universal Time, is a seperate time zone used to ensure that computers across the world share a common time. When you have to deal with different time zones, and daylight saving time, it can be complicated to know exactly when an event happened on two seperate computers in different countries.

So basically you can't change UTC, you can change your computer to use UTC, but thats not what you want to do most likely :)
Back to top
View user's profile Send private message
swooshOnLn
l33t
l33t


Joined: 28 Feb 2006
Posts: 741
Location: Charlotte, North Carolina

PostPosted: Sun Apr 09, 2006 5:14 am    Post subject: Reply with quote

wow, I am almost embarresd that the awnser is that simple... how could I miss that?
_________________
"WARNING: you may LOL"

This is my font size, color, and signature. It will change to whatever I pick. How cool is that?
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Sun Apr 09, 2006 5:18 am    Post subject: Reply with quote

If you set your computer clock to use UTC and be set to the correct UTC time, set your timezone correctly then they should sync properly. The system should translate any UTC timestamps into the correct time for your locale. The timezone setting as mentioned in the gentoo install guide is important. It tells your system how many hours to add or subtract from UTC time to display correctly in your time. Of course if a program does not follow the correct rules, then it may not match.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum