X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FLog.pm;h=957b5102e64b031b2d11b914a9a50de9a6dcf91d;hb=c259ad15c1e3ed8f643fda85c5c4f432aac2d6ef;hp=d276f558b0b38313440da4cc5e850fa8a30caec7;hpb=fe78f0c128c35e68e65850b02057997bad6717fe;p=gruntmaster-page.git diff --git a/lib/Gruntmaster/Page/Log.pm b/lib/Gruntmaster/Page/Log.pm index d276f55..957b510 100644 --- a/lib/Gruntmaster/Page/Log.pm +++ b/lib/Gruntmaster/Page/Log.pm @@ -46,7 +46,7 @@ sub generate{ my @log = sort { $b->{id} <=> $a->{id} } map { my $meta = LoadFile "$path/$_/meta.yml"; +{ id => $_, - date => strftime ('%c' => localtime $meta->{date}), + date => (exists $meta->{date} ? strftime ('%c' => localtime $meta->{date}) : '?'), user => $meta->{user}, result => $meta->{result}, name => $meta->{name},