Skip to content

Commit

Permalink
Add date-change filter "common" boolean option to output date+time wi…
Browse files Browse the repository at this point in the history
…thout T separator

E.g. 2016-03-31 12:34:56 instead of 2016-03-31T12:34:56
  • Loading branch information
jonjensen committed Apr 28, 2016
1 parent 3f2ab88 commit 8123876
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions 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
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit 8123876

Please sign in to comment.