Elxis CMS Forum

Support => General => Topic started by: perseas on May 14, 2015, 09:55:48

Title: Component Content Elxis 4.3: Articles Modified date not working
Post by: perseas on May 14, 2015, 09:55:48
Articles Modified date not working and tooks the same date as created date.

Any solutions ??
Title: Re: Component Content Elxis 4.3: Articles Modified date not working
Post by: datahell on May 14, 2015, 21:12:54
When you create anything the last modification date of that thing is the same date as the creation date.
When you modify anything the creation date should stay intact and the modification date should be updated to the current date-time.
If it works like that then it works fine.
Title: Re: Component Content Elxis 4.3: Articles Modified date not working
Post by: perseas on May 15, 2015, 00:56:03
No, the modification date does not updated to the current date-time.  Change to the same with the created date.

The date of amending Article is not modified to the current date as it should but takes the date of creation by saying eg "Last Update 03 August 2014 21:59" when in fact amended today and created on 08/03/2014. This happened after upgrade from version 4.2 to 4.3.

Η ημερομηνία τροποποίησης του άρθρου δεν τροποποιείται στην τρέχουσα ημερομηνία όπως θα έπρεπε αλλά λαμβάνει την ημερομηνία δημιουργίας λέγοντας π.χ. "Τελευταία ενημέρωση 03 Αυγ 2014 21:59" ενώ στην πραγματικότητα τροποποιήθηκε σήμερα και δημιουργήθηκε στις 3-8-2014. Αυτό συνέβη μετά από αναβάθμιση της έκδοσης απο την 4.2 στην 4.3.
Title: Re: Component Content Elxis 4.3: Articles Modified date not working
Post by: datahell on May 16, 2015, 07:25:57
You are right, something is wrong. Here is how to fix it.

Open this file:
includes/libraries/elxis/database/tables/content.db.php
Go to line 131:
$mdt = ($nowts > strtotime($this->created)) ? $this->created : $now;
Change it to:
$mdt = ($nowts > strtotime($this->created)) ? $now : $this->created;

This will fix the problem. I updated Elxis 4.3 with this fix.
Thanks for the report!
Title: SOLVED: Component Content Elxis 4.3: Articles Modified date not working
Post by: perseas on May 16, 2015, 07:51:24
The problem solved. Thanks "datahell"