LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-11-2008, 01:37 PM   #1
kingtermite
LQ Newbie
 
Registered: May 2008
Distribution: Ubuntu for the moment
Posts: 10

Rep: Reputation: 0
SVN timestamp issue


I've been working on setting up this local SVN server on an Ubuntu machine. It's a pilot to try to get our group to switch to SVN.

My latest problem is that when I update (commit) a file from a client (windows machine using TortoiseSVN), the client keeps the modification time of the file and not the commit time.

I really don't care which time is used, as long as they time in the windows computer and the one in the repository match.

So far the only way I've found is to delete the file and repull it from the repository (there has GOT to be a better solution).


But the real problem is that the time stamp stored on the repository appears to be GMT, not local time. So when I pull it back it's about 8 hours off (I'm at GMT - 8).

How can I ensure subversion uses local time, not GMT?
 
Old 07-12-2008, 10:20 PM   #2
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
I think SVN is pulling the time from your local computer? So what is your time settings on your Windows box versus your Ubuntu machine and the SVN server? I know that I see time differences if I set one to UTC and the other to local time.
 
Old 07-14-2008, 02:48 PM   #3
kingtermite
LQ Newbie
 
Registered: May 2008
Distribution: Ubuntu for the moment
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Micro420 View Post
I think SVN is pulling the time from your local computer? So what is your time settings on your Windows box versus your Ubuntu machine and the SVN server? I know that I see time differences if I set one to UTC and the other to local time.
I do have the Ubuntu box set for UTC, because that was the only way I found for it to use the offset and have the correct time. Is there another way to set the time properly? That could very well be the problem.
 
Old 07-14-2008, 03:30 PM   #4
kingtermite
LQ Newbie
 
Registered: May 2008
Distribution: Ubuntu for the moment
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Micro420 View Post
I think SVN is pulling the time from your local computer? So what is your time settings on your Windows box versus your Ubuntu machine and the SVN server? I know that I see time differences if I set one to UTC and the other to local time.
I think you were spot on. It seems it may have had to do with how I answered the time question during setup.


Just for completion, I'll post the solution.

I found my solution here:
http://ubuntuforums.org/archive/index.php/t-436877.html


Quote:
Originally Posted by kebes
1. Set date to current time, if required (instead of "11:02" use the current time):
$ sudo date -s 11:02
2. Update the hardware clock with the newly updated time:
$ sudo /sbin/hwclock --systohc --localtime
3. Check that the change took effect:
$ /sbin/hwclock --localtime
Tue 08 May 2007 11:01:41 AM EDT -0.641764 seconds
4. Load the hardware clock time back into the system:
$ /sbin/hwclock --hctosys --localtime
This procedure has fixed my local time on ubuntu computer without the "use UTC" checkbox (which was part of what was messing things up I think).

I checked the subversion timestamp and it now comes back with local/correct time.
 
  


Reply

Tags
subversion, svn, timestamp



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CruiseControl+SVN Issue !!!! ajeetraina Linux - Server 1 11-01-2008 09:31 PM
SVN Server Access Issue??? ajeetraina Linux - Server 1 03-27-2008 06:59 AM
Remote SVN Backup Issue ajeetraina Linux - Server 4 06-29-2007 07:27 AM
Issue with SVN and Proxy Server combrains Linux - Software 1 03-26-2007 08:24 PM
thunderbird timestamp issue YBA^[x] Slackware 4 12-12-2004 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration