On attempting to import a document from Alfresco, import fails and the following error occurs:
Incorrect datetime value: '2009-01-26T17:42:56.080Z' for column 'cm_created' at row 1 query: INSERT INTO alfresco_node (vid, nid, reference, timestamp, cm_name, cm_title, cm_description, cm_author, cm_created, cm_creator, cm_modified, cm_modifier) VALUES (6, 6, 'workspace://SpacesStore/12a37928-2803-42b6-ad1b-00eacd48b66d', 1232992887, 'TestDoc', '', '', '', '2009-01-26T17:42:56.080Z', 'admin', '2009-01-26T17:44:27.502Z', 'admin') in C:\Inetpub\wwwroot\drupal\drupal-6.9\includes\common.inc on line 3425.
Caused by a non-US (UK) timezone/locale, perhaps?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | alfresco-HEAD.datetime-parser.patch | 3.21 KB | smartinm |
Comments
Comment #1
smartinm commentedHi Colin, thanks for bug report.
It seems to be a datetime parsing bug. I'll look into fixing this. What version of mysql server are you using?
Comment #2
colinah commentedMySQL is version 5.0.41 Community.
We've come across this issue with Alfresco elsewhere - they seem to like time strings with a 'Z' on the end.
Comment #3
smartinm commentedAttached patch should fix this issue.
Comment #4
smartinm commentedCommitted.