X-Git-Url: http://git.nikiroo.be/?p=nikiroo-utils.git;a=blobdiff_plain;f=supported%2FBasicSupport_Deprecated.java;h=bc3738a211bc22b92ac8811e85a549dd17777618;hp=47cb7a2c94ed2b965e865e398638d683a8967898;hb=bff19b54d345ceb9e14aef616b53c013e93a0417;hpb=3fe74d130543156e3cbf8905e60ae1e84911be85 diff --git a/supported/BasicSupport_Deprecated.java b/supported/BasicSupport_Deprecated.java index 47cb7a2..bc3738a 100644 --- a/supported/BasicSupport_Deprecated.java +++ b/supported/BasicSupport_Deprecated.java @@ -205,8 +205,9 @@ public abstract class BasicSupport_Deprecated extends BasicSupport { Story story = new Story(); MetaData meta = getMeta(url, getInput()); if (meta.getCreationDate() == null - || meta.getCreationDate().isEmpty()) { - meta.setCreationDate(StringUtils.fromTime(new Date().getTime())); + || meta.getCreationDate().trim().isEmpty()) { + meta.setCreationDate(bsHelper.formatDate( + StringUtils.fromTime(new Date().getTime()))); } story.setMeta(meta); pg.put("meta", meta);