[Python-projects] [PATCH] strftime: %F is not supported on Windows

Nicolas Chauvat nicolas.chauvat at logilab.fr
Thu Jan 3 11:44:17 CET 2008


On Wed, Jan 02, 2008 at 11:54:06PM -0600, Steve Borho wrote:
> # HG changeset patch
> # User Steve Borho <XXXX at borho.org>
> # Date 1199339635 21600
> # Node ID d4bf7c72fad13360e7610cf7a4e5d926974bd982
> # Parent  2554085afe8e436d17354178f68752e0cf47f1f5
> strftime: %F is not supported on Windows
> 
> diff --git a/hgview/hgrepo.py b/hgview/hgrepo.py
> --- a/hgview/hgrepo.py
> +++ b/hgview/hgrepo.py
> @@ -31,7 +31,7 @@ class RevNode(object):
>      short = property(get_short_log)
>  
>      def get_date( self ):
> -        date_ = time.strftime( "%F %H:%M", self.gmtime )
> +        date_ = time.strftime( "%Y-%m-%d %H:%M", self.gmtime )
>          return date_
>      date = property(get_date)

Than you for that patch. I included it in our repository.

-- 
Nicolas Chauvat

logilab.fr - services en informatique scientifique et gestion de connaissances  


More information about the Python-Projects mailing list