From: Mischa POSLAWSKY Date: Thu, 27 Apr 2017 00:47:46 +0000 (+0200) Subject: browser: set caniuse date to exported data value X-Git-Tag: v1.10~58 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/503c034a5d0b5d063c846fbf464a9669fda4e1d5 browser: set caniuse date to exported data value Field actually added by Alexis shortly after our discussion in 2010, so no more need to stat file/retrieval date. --- diff --git a/tools/mkcaniuse b/tools/mkcaniuse index 65fcec3..c181758 100755 --- a/tools/mkcaniuse +++ b/tools/mkcaniuse @@ -21,9 +21,8 @@ $JSON::PP::false = 0; $JSON::PP::true = 1; my $data = decode_json($source); -my $update = eval { stat(${^LAST_FH} // $ARGV)->mtime } - or warn "Could not determine input time\n"; -$data->{-date} = Time::Piece->new($update)->datetime; +$data->{-date} = Time::Piece->new($_)->datetime + for delete $data->{updated} || (); delete $data->{eras}; for (values %{ $data->{data} }) {