From b6252c99c9b7d60a5bdc85a67d235277307e120f Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 1 Feb 2015 23:47:54 +0100 Subject: Add hours, minutes and seconds to the date field of the description. Add the hours, minutes and seconds of the file creation date read from the EXIF metadata to the date field of the Information template on the description page. This change is made to adapt the common behaviour already used by the Upload Wizard. - add "%H:%M:%S" to the time format string in MediaWikiExportServiceProvider.processRenderedPhotos Fix #38 --- mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua b/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua index edbcb5f..c9d5a1a 100755 --- a/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua +++ b/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua @@ -95,7 +95,7 @@ MediaWikiExportServiceProvider.processRenderedPhotos = function(functionContext, local timestampSeconds = photo:getRawMetadata('dateTimeOriginal') local timestamp = '' if timestampSeconds then - timestamp = os.date("!%Y-%m-%d", timestampSeconds + 978307200) + timestamp = os.date("!%Y-%m-%d %H:%M:%S", timestampSeconds + 978307200) end local author = exportSettings.info_author local license = exportSettings.info_license -- cgit v1.2.1