• Solved - PropertyGroups Metadata Date display error

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #19011  by okmuser
 
Hi,
I have recently installed OpenKM 6.2 (nightly build) and managed to configure everything from 5.1.11 - apart from MySQL repository.

But when I access custom metadata tab an error pops up relating to the date field.

Can you please guide me to solve this issue.
Attachments
MyScreenshot.png
MyScreenshot.png (5.73 KiB) Viewed 3018 times
Last edited by okmuser on Sat Nov 03, 2012 9:05 pm, edited 1 time in total.
 #19019  by okmuser
 
Further information,

From 5.1.11 the exported metadata value is:
Code: Select all
{"name":"okp:datab.date","type":1,"multiValue":false,"value":"2012-09-10T00:00:00.000+10:00","values":[]},
But on 6.2.1 the exported metadata value is:
Code: Select all
{"name":"okp:datab.date","type":"Input","multiValue":false,"value":"20121102000000","values":[]}
I may be wrong but I believe the export and import for date function in custom property values doesn't match, thus the error as per my previous post.

Please help me to overcome this issue.

Thanks with regards,
OkmUser
 #19044  by jllort
 
There's a problem between 5.1.11 date format and 6.2 format but can be easilly solved after importing on 6.2

At 5.1.X the date format is String ISO8601_PATTERN = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZ";
At 6.X the date format is String BASIC_PATTER = "yyyyMMddHHmmss";

Values on version 6.x are stored at table OKM_NODE_PROPERTY:
Code: Select all
SELECT * FROM OKM_NODE_PROPERTY;
Simply build a query to transform older format to newer, for example:
1- replace character "-" to ""
2- replace character : to ""
now you get something like yyyyMMddTHHmmss.SSSZZZ
3 - get first 8 digits yyyyMMdd with digits from 10 to 16 HHmmss
and you'll get the actual format yyyyMMddHHmmss

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.