Elxis CMS Forum

Support => Technical support => Topic started by: owl on August 27, 2008, 12:07:02

Title: Wrong date of article with german Backend
Post by: owl on August 27, 2008, 12:07:02
Hi,

editing or adding articles with german backend gives always wrong creation date and publishing date:

NEW article, german Backend: 1999-11-30 00:00:00 (wrong date)
NEW article, english Backend: TODAY (correct, e.g. 2008-08-27 10:21:50)

EDIT article, german Backend: 30-11-1999 00:00:00 (wrong date)
EDIT article, english Backend: TODAY (correct, e.g. 2008-08-27 10:25:35)

Best regards,
Sandra
Title: Re: Wrong date of article with german Backend
Post by: Farhad Sakhaei on August 27, 2008, 12:18:43
Are you using 2008 version ?
Title: Re: Wrong date of article with german Backend
Post by: owl on August 27, 2008, 12:21:42
Are you using 2008 version ?
Yes, 2008.0 with hotfix.
Title: Re: Wrong date of article with german Backend
Post by: Farhad Sakhaei on August 27, 2008, 12:25:20
I think may be there is a mistake in Germany language files in some expressions in date formats, Please check them and compare with english version  :)
Title: Re: Wrong date of article with german Backend
Post by: owl on August 27, 2008, 12:43:28
I think may be there is a mistake in Germany language files in some expressions in date formats, Please check them and compare with english version  :)
Nope, the date-stuff seems to be identical:
Code: [Select]
DEFINE('_GEM_DATE_FORMLC', "%A, %d %B %Y"); //Note: Uses PHP's strftime Command Format
DEFINE('_GEM_DATE_FORMLC2', "%A, %d %B %Y %H:%M");

Database says
- article added in german Backend, "CREATED: 0000-00-00 00:00:00, MODIFIED: 1979-12-19 00:00:00, PUBLISH UP: 0000-00-00 00:00:00"
- article added in english Backend, "CREATED: 2008-08-27 11:11:58, MODIFIED: 1979-12-19 00:00:00, PUBLISH UP: 2008-08-27 00:00:00"
Title: Re: Wrong date of article with german Backend
Post by: owl on September 01, 2008, 11:53:06
And why does it work, if someone chooses "today" or "specific date" from the calendar?

Code: [Select]
diff -Nur elxis_original/administrator/language/german/german.com_content.php elxis/administrator/language/german/german.com_content.php
--- elxis_original/administrator/language/german/german.com_content.php 2008-01-15 06:53:42.000000000 +0100
+++ elxis/administrator/language/german/german.com_content.php 2008-09-01 10:47:17.875000000 +0200
@@ -22,7 +22,7 @@
-var $A_CMP_CNT_DATEFORMAT = 'd-m-Y h:i:s';
+var $A_CMP_CNT_DATEFORMAT = 'Y-m-d h:i:s';
@@ -63,11 +63,11 @@
-var $A_CMP_CNT_DROWCRED = '%d-%m-%Y %H:%M:%S';
-var $A_CMP_CNT_DROWMOD = '%d-%m-%Y %H:%M:%S';
-var $A_CMP_CNT_DROWPUB = '%d-%m-%Y %H:%M:%S';
+var $A_CMP_CNT_DROWCRED = '%Y-%m-%d %H:%M:%S';
+var $A_CMP_CNT_DROWMOD = '%Y-%m-%d %H:%M:%S';
+var $A_CMP_CNT_DROWPUB = '%Y-%m-%d %H:%M:%S';
-var $A_CMP_CNT_DPUBLISHUP = 'd-m-Y';
+var $A_CMP_CNT_DPUBLISHUP = 'Y-m-d';

Now it seems to work... Could someone please approve that? (at least here it works after applying the changes)
Title: Re: Wrong date of article with german Backend
Post by: datahell on September 01, 2008, 14:55:08
Approved  ;)
I updated the German language (german.com_content.php) files for Elxis 2008.1 with your modifications
Title: Re: Wrong date of article with german Backend
Post by: owl on September 01, 2008, 15:23:06
Thank you ;-)