Semanticmediawiki: Negative Timezone leads to warning: contains more than three components required for a date interpretation.

Created on 21 Sep 2020  路  3Comments  路  Source: SemanticMediaWiki/SemanticMediaWiki

Setup

  • SMW version: 2.5.8
  • MW version: 1.27.3
  • PHP version: 7.2.24
  • DB system: MySQL 5.7.31

Issue

Trying to set a data type property with the value: 2020-09-15 03:42:20 -0500

Gives the warning:
grafik
"2020-09-15 03:42:20 -0500" contains more than three components required for a date interpretation.

The data comes from a script I am using to document git log entries

git --no-pager log --reverse --pretty=format:{{commit'|'host=$host'|'path=${path}'|'project=${project}'|'subject=%s'|'name=%cn'|'date=%ci'|'hash=%h'|'storemode=subobject'|'viewmode=line}}

So it would be great not to have to modify the script to work around the negative timezone not being handled.

bug

All 3 comments

The MW and SMW versions are somewhat old. What happens using more current versions?

MW 1.35.0 + SMW 3.2.0 does not have the problem

Let's put it like this: Appears to work on sandbox

Was this page helpful?
0 / 5 - 0 ratings