Skip Menu |

This queue is for tickets about the SVN-Web CPAN distribution.

Report information
The Basics
Id: 18806
Status: resolved
Priority: 0/
Queue: SVN-Web

People
Owner: Nobody in particular
Requestors: mikee [...] s2technologies.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.46
Fixed in: (no value)



Subject: Revision Date displayed is GMT
the date displayed on a revision view (for example) appears to be GMT. Is there some way to (optionally ?) make it display as localtime? I realize it's probably impossible to have it be the localtime for the client (browser), but localtime for the server would be adequate for our purposes.
On Thu Apr 20 18:37:46 2006, guest wrote: Show quoted text
> the date displayed on a revision view (for example) appears to be GMT. > Is there some way to (optionally ?) make it display as localtime? I > realize it's probably impossible to have it be the localtime for the > client (browser), but localtime for the server would be adequate for our > purposes.
I've got some code that should solve this. It lets you specify two things. First, the format (as a strftime format string) that you want to display the date as. For example, %Y/%m/%d %H:%M:%S will duplicate the current functionality. The second is the timezone you want times converted to. The choices are: 1. Undefined. In which case you get the current behaviour, UTC/GMT 2. The literal C<local>, in which case the server's local time zone is used. 3. A timezone name, such as C<BST> or C<EST>, in which case all the times are converted to that timezone. Does that cover all your requirements? N
On Thu Apr 20 18:37:46 2006, guest wrote: Show quoted text
> the date displayed on a revision view (for example) appears to be GMT. > Is there some way to (optionally ?) make it display as localtime? I > realize it's probably impossible to have it be the localtime for the > client (browser), but localtime for the server would be adequate for our > purposes.
I've got some code that should solve this. It lets you specify two things. First, the format (as a strftime format string) that you want to display the date as. For example, %Y/%m/%d %H:%M:%S will duplicate the current functionality. The second is the timezone you want times converted to. The choices are: 1. Undefined. In which case you get the current behaviour, UTC/GMT 2. The literal C<local>, in which case the server's local time zone is used. 3. A timezone name, such as C<BST> or C<EST>, in which case all the times are converted to that timezone. Does that cover all your requirements? N
Subject: RE: [rt.cpan.org #18806] Revision Date displayed is GMT
Date: Fri, 12 May 2006 13:46:42 -0700
To: <bug-SVN-Web [...] rt.cpan.org>
From: "Mike Ellery" <mikee [...] s2technologies.com>
That sounds quite sufficient. Thanks. -Mike Show quoted text
> -----Original Message----- > From: Guest via RT [mailto:bug-SVN-Web@rt.cpan.org] > Sent: Friday, May 12, 2006 1:43 PM > To: mikee@s2technologies.com > Subject: [rt.cpan.org #18806] Revision Date displayed is GMT > > > <URL: http://rt.cpan.org/Ticket/Display.html?id=18806 > > > On Thu Apr 20 18:37:46 2006, guest wrote:
> > the date displayed on a revision view (for example) appears
> to be GMT.
> > Is there some way to (optionally ?) make it display as localtime? I > > realize it's probably impossible to have it be the localtime for the > > client (browser), but localtime for the server would be
> adequate for our
> > purposes.
> > I've got some code that should solve this. It lets you > specify two things. > > First, the format (as a strftime format string) that you want > to display > the date as. For example, > > %Y/%m/%d %H:%M:%S > > will duplicate the current functionality. > > The second is the timezone you want times converted to. The > choices are: > > 1. Undefined. In which case you get the current behaviour, UTC/GMT > > 2. The literal C<local>, in which case the server's local > time zone is > used. > > 3. A timezone name, such as C<BST> or C<EST>, in which case all the > times are converted to that timezone. > > Does that cover all your requirements? > > N >
Download smime.p7s
application/x-pkcs7-signature 3k

Message body not shown because it is not plain text.

On Fri May 12 16:47:16 2006, mikee@s2technologies.com wrote: Show quoted text
> That sounds quite sufficient. Thanks.
Want to give it a try? Here's the revision that introduced the change. http://jc.ngo.org.uk/svnweb/jc/revision?rev=891 Or, try svn checkout -r 891 svn://jc.ngo.org.uk/nik/CPAN/SVN-Web/trunk which should give you the most recent code. This will be in 0.48. Feedback gratefully received. N
Subject: RE: [rt.cpan.org #18806] Revision Date displayed is GMT
Date: Sat, 20 May 2006 09:47:33 -0700
To: <bug-SVN-Web [...] rt.cpan.org>
From: "Mike Ellery" <mikee [...] s2technologies.com>
Sorry for the slow response. I'll be happy to give this is a try. How do I install these files? There is no Makefile.PL -- do I simply replace the files in my site/lib directory? Are there new options I need to add to config.yaml ? Thanks, Mike Show quoted text
> -----Original Message----- > From: via RT [mailto:bug-SVN-Web@rt.cpan.org] > Sent: Monday, May 15, 2006 5:48 AM > To: mikee@s2technologies.com > Subject: [rt.cpan.org #18806] Revision Date displayed is GMT > > > <URL: http://rt.cpan.org/Ticket/Display.html?id=18806 > > > On Fri May 12 16:47:16 2006, mikee@s2technologies.com wrote:
> > That sounds quite sufficient. Thanks.
> > Want to give it a try? Here's the revision that introduced > the change. > > http://jc.ngo.org.uk/svnweb/jc/revision?rev=891 > > Or, try > > svn checkout -r 891 svn://jc.ngo.org.uk/nik/CPAN/SVN-Web/trunk > > which should give you the most recent code. This will be in 0.48. > > Feedback gratefully received. > > N >
Download smime.p7s
application/x-pkcs7-signature 3k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #18806] Revision Date displayed is GMT
Date: Sun, 21 May 2006 18:08:37 +0100
To: bug-SVN-Web [...] rt.cpan.org
From: Nik Clayton <nik [...] ngo.org.uk>
mikee@s2technologies.com via RT wrote: Show quoted text
> Sorry for the slow response. I'll be happy to give this is a try. How do I > install these files? There is no Makefile.PL -- do I simply replace the > files in my site/lib directory? Are there new options I need to add to > config.yaml ?
% perl Build.PL % ./Build % ./Build test % ./Build install should work. To keep the existing behaviour you don't need to do anything. If you want to see timestamps in the server's local timezone then add: timezone: local to config.yaml. There's also a timedate_format: ... directive which you can set. The documentation for the new configuration options relating to time/date formatting can be seen by running % perldoc SVN::Web (after you've installed the new version) and reading the "Time and date formatting" section. N
Subject: RE: [rt.cpan.org #18806] Revision Date displayed is GMT
Date: Mon, 22 May 2006 14:05:59 -0700
To: <bug-SVN-Web [...] rt.cpan.org>
From: "Mike Ellery" <mikee [...] s2technologies.com>
Works great for me. I tried setting to PST, got expected results, then switched to local so that I won't have to manually switch between PST and PDT. Thanks, Mike Ellery Show quoted text
> -----Original Message----- > From: nik@ngo.org.uk via RT [mailto:bug-SVN-Web@rt.cpan.org] > Sent: Sunday, May 21, 2006 10:10 AM > To: mikee@s2technologies.com > Subject: Re: [rt.cpan.org #18806] Revision Date displayed is GMT > > > <URL: http://rt.cpan.org/Ticket/Display.html?id=18806 > > > mikee@s2technologies.com via RT wrote:
> > Sorry for the slow response. I'll be happy to give this is
> a try. How do I
> > install these files? There is no Makefile.PL -- do I
> simply replace the
> > files in my site/lib directory? Are there new options I
> need to add to
> > config.yaml ?
> > % perl Build.PL > % ./Build > % ./Build test > % ./Build install > > should work. > > To keep the existing behaviour you don't need to do anything. If you > want to see timestamps in the server's local timezone then add: > > timezone: local > > to config.yaml. There's also a > > timedate_format: ... > > directive which you can set. The documentation for the new > configuration options relating to time/date formatting can be seen by > running > > % perldoc SVN::Web > > (after you've installed the new version) and reading the > "Time and date > formatting" section. > > N > >
Download smime.p7s
application/x-pkcs7-signature 3k

Message body not shown because it is not plain text.

Thanks for the suggestion, this functionality will be in 0.48, released soon.