summaryrefslogtreecommitdiff
path: root/tickets/d533923afa4648bea9dd55cc7302e68c/Maildir/new/1496010993.M27229P512Q1.koom
blob: d4ea56ea84ad6cb124c6e6fc9f9614e84f065372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Return-Path: <stappers@stappers.nl>
X-Original-To: tickets@distix.eu
Delivered-To: distix@pieni.net
Received: from gpm.stappers.nl (gpm.stappers.nl [82.161.218.215])
	by pieni.net (Postfix) with ESMTP id E7CD541451
	for <tickets@distix.eu>; Sun, 28 May 2017 22:35:15 +0000 (UTC)
Received: by gpm.stappers.nl (Postfix, from userid 1000)
	id 99C7F304035; Mon, 29 May 2017 00:35:15 +0200 (CEST)
Date: Mon, 29 May 2017 00:35:15 +0200
From: Geert Stappers <stappers@stappers.nl>
To: tickets@distix.eu
Subject: Re: Ticket dates - come from import date?
Message-ID: <20170528223515.GN32244@gpm.stappers.nl>
References: <20170528060929.GC17621@gpm.stappers.nl>
 <20170528063231.GU32244@gpm.stappers.nl>
 <20170528223018.GM32244@gpm.stappers.nl>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20170528223018.GM32244@gpm.stappers.nl>
User-Agent: Mutt/1.5.21 (2010-09-15)

On Mon, May 29, 2017 at 12:30:18AM +0200, Geert Stappers wrote:
> On Sun, May 28, 2017 at 08:32:31AM +0200, Geert Stappers wrote:
> > On Sun, May 28, 2017 at 08:09:29AM +0200, Geert Stappers wrote:
> > > 
> > > FWIW: There is no timezone information in the date
> > 
> > IMHO there should be TZ info in the webpages of the ticket.
> > (the timezone information from the email should get into the HTML)

Now retransmitting the patch

> From: Geert Stappers <stappers@stappers.nl>
> Date: Mon, 29 May 2017 00:19:24 +0200
> Subject: [PATCH] plugins/html_plugin.py _format_timestamp() with timezone
> 
> the %z is +hhmm numeric time zone (e.g., -0400)
> ---
>  distixlib/plugins/html_plugin.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/distixlib/plugins/html_plugin.py b/distixlib/plugins/html_plugin.py
> index 2ee8bd1..182b6ae 100644
> --- a/distixlib/plugins/html_plugin.py
> +++ b/distixlib/plugins/html_plugin.py
> @@ -91,7 +91,7 @@ class StaticSite(object):
>          self._copy_static_files()
>  
>      def _format_timestamp(self):
> -        return time.strftime('%Y-%d-%m %H:%M:%S')
> +        return time.strftime('%Y-%d-%m %H:%M:%S %z')
>  
>      def _render_ticket_list(self, template, filename, condition):
>          variables = {
> -- 
> 2.11.0
> 

-- 
Groeten
Geert Stappers
-- 
Leven en laten leven