[interchange] Add date-change filter "common" boolean option to output date+time without T separator
Jon Jensen
interchange-cvs at icdevgroup.org
Fri Apr 29 03:03:09 UTC 2016
commit 812387603df93f1600808215b6a8f3e254d7027b
Author: Jon Jensen <jon at endpoint.com>
Date: Thu Mar 31 18:06:36 2016 -0600
Add date-change filter "common" boolean option to output date+time without T separator
E.g. 2016-03-31 12:34:56 instead of 2016-03-31T12:34:56
code/Filter/date_change.filter | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/code/Filter/date_change.filter b/code/Filter/date_change.filter
index 0d1c2b1..8952335 100644
--- a/code/Filter/date_change.filter
+++ b/code/Filter/date_change.filter
@@ -1,12 +1,10 @@
-# Copyright 2002-2007 Interchange Development Group and others
+# Copyright 2002-2016 Interchange Development Group and others
# Copyright 1996-2002 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. See the LICENSE file for details.
-#
-# $Id: date_change.filter,v 1.8 2007-03-30 23:40:44 pajamian Exp $
CodeDef date_change Filter
CodeDef date_change Description Date widget
@@ -53,6 +51,10 @@ sub {
$date_format = '%04d-%02d-%02d';
$time_format = 'T%02d:%02d:%02d';
}
+ elsif ($opt->{common}) {
+ $date_format = '%04d-%02d-%02d';
+ $time_format = ' %02d:%02d:%02d';
+ }
else {
$date_format = '%04d%02d%02d';
$time_format = '%02d%02d';
More information about the interchange-cvs
mailing list