diff --git a/mkdocs_rss_plugin/plugin.py b/mkdocs_rss_plugin/plugin.py index 61d3540..7ce5f9c 100644 --- a/mkdocs_rss_plugin/plugin.py +++ b/mkdocs_rss_plugin/plugin.py @@ -168,13 +168,19 @@ def on_config(self, config: MkDocsConfig) -> MkDocsConfig: self.config.date_from_meta.default_time = datetime.strptime( self.config.date_from_meta.default_time, "%H:%M" ) + print( + self.config.date_from_meta.default_time, + type(self.config.date_from_meta.default_time), + ) except (TypeError, ValueError) as err: logger.warning( "Config error: `date_from_meta.default_time` value " f"'{self.config.date_from_meta.default_time}' format doesn't match the " f"expected format %H:%M. Fallback to the default value. Trace: {err}" ) - self.config.date_from_meta.default_time = "00:00" + self.config.date_from_meta.default_time = datetime.strptime( + "00:00", "%H:%M" + ) if self.config.use_git: logger.debug(