aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2015-02-01 23:47:54 +0100
committerRobin Krahl <me@robin-krahl.de>2015-02-01 23:47:54 +0100
commitb6252c99c9b7d60a5bdc85a67d235277307e120f (patch)
tree07ac9eb2682caf539aa1eda4bedc4fe67496a857
parente75ab2a20d770c23e1bae8b4258640f033f4f7db (diff)
downloadLrMediaWiki-b6252c99c9b7d60a5bdc85a67d235277307e120f.tar.gz
LrMediaWiki-b6252c99c9b7d60a5bdc85a67d235277307e120f.tar.bz2
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
-rwxr-xr-xmediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua2
1 files changed, 1 insertions, 1 deletions
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