projects
/
infodrom.org
/
service.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6a70619
)
Support full German date
author
Joey Schulze
<joey@infodrom.org>
Mon, 11 Jul 2016 20:33:58 +0000
(22:33 +0200)
committer
Joey Schulze
<joey@infodrom.org>
Mon, 11 Jul 2016 20:33:58 +0000
(22:33 +0200)
src/InfoCon/buch/infocon
patch
|
blob
|
history
diff --git
a/src/InfoCon/buch/infocon
b/src/InfoCon/buch/infocon
index
08e7f4f
..
21e5fe7
100755
(executable)
--- a/
src/InfoCon/buch/infocon
+++ b/
src/InfoCon/buch/infocon
@@
-100,6
+100,12
@@
sub valid_isodate
} else {
$date = sprintf('%04d-%02d-%02d', $year+1900, $2, $1);
}
+ } elsif ($date =~ /^(\d+)\.(\d+)\.(\d+)?$/) {
+ if (length $3 == 2) {
+ $date = sprintf('20%02d-%02d-%02d', $3, $2, $1);
+ } else {
+ $date = sprintf('%04d-%02d-%02d', $3, $2, $1);
+ }
} elsif ($date !~ /^(\d+)-(\d+)-(\d+)$/) {
return undef;
}