Bug 11244: (follow-up) Fix $dateonly flag
authorDavid Cook <dcook@prosentient.com.au>
Mon, 20 Jan 2014 02:52:38 +0000 (13:52 +1100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 20 Aug 2014 16:42:32 +0000 (13:42 -0300)
commit8f68dad1f2a872fc30b579180c6a5a415cdd77a1
treefef527c8e04e58724455ef4a0a6dbad1e2a7d5fd
parent7605f91f0f4903b256f5f060ee9845c427947096
Bug 11244: (follow-up) Fix $dateonly flag

At the moment, $dateonly is set to true when $1 is defined. However,
since the regex capture group only includes the time, this flag will
only be set when there is a value that includes a time.

In effect, this means that timestamps are reduced to dates only,
while dates have 00-00-0000 added to them.

This patch keeps the logic but reverses the values, so that $dateonly
will default to true unless $1 is defined.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Letters.pm