summaryrefslogtreecommitdiff
path: root/tickets/d533923afa4648bea9dd55cc7302e68c/Maildir/new/1496010993.M269829P512Q2.koom
blob: 1f770ac8426df7fd3c6899c14805045b7c3830a9 (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
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 69CBF41ABD
	for <tickets@distix.eu>; Sun, 28 May 2017 22:30:19 +0000 (UTC)
Received: by gpm.stappers.nl (Postfix, from userid 1000)
	id DFA93304035; Mon, 29 May 2017 00:30:18 +0200 (CEST)
Date: Mon, 29 May 2017 00:30:18 +0200
From: Geert Stappers <stappers@stappers.nl>
To: tickets@distix.eu
Subject: Re: Ticket dates - come from import date?
Message-ID: <20170528223018.GM32244@gpm.stappers.nl>
References: <20170528060929.GC17621@gpm.stappers.nl>
 <20170528063231.GU32244@gpm.stappers.nl>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20170528063231.GU32244@gpm.stappers.nl>
User-Agent: Mutt/1.5.21 (2010-09-15)

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)
> 

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