Support ⇒ Troubleshootings :: Archives ⇒ Wrong date in profile :: Archived (page 2) ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexTroubleshootings

Archived ⇒ Wrong date in profile


WARNING mayhemkrew code is for 9.0.6.1 and below!!!

There's a big difference between 9.1 and 9.0 regarding the registration date.
It's not a varchar field anymore (as it was from php-nuke) but it's changed to an integer (unix timestamp)

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


That worked

Sam

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache/MySQL4.0.27/PHP4.3.11/The Great CPGNuke9.1.1


The 9.1.1 CVS fixed all of my problems.

Sam

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache/MySQL4.0.27/PHP4.3.11/The Great CPGNuke9.1.1


$Source: /cvs/html/modules/Your_Account/userinfo.php,v $
$Revision: 9.33 $
$Author: phoenix $
$Date: 2006/08/17 13:12:50 $

But my date in user's profiles still only gives the date like this: Joined: Tuesday, March 18

No year. It's correct in the forum when viewing a post just not in the profile.

Brad G
Recovering PHPNuke junkie

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FC4/2.0.59/4.1.12/4.4.4/9.1.2.1


If you not using the default english language then you might need to upgrade you language pack.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.7 / PHP 7.3 / head


This is what I'm using:

$Source: /cvs/html/language/english/your_account.php,v $
$Revision: 9.10 $
$Author: trevor $
$Date: 2005/04/28 22:45:18 $

Brad G
Recovering PHPNuke junkie

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FC4/2.0.59/4.1.12/4.4.4/9.1.2.1


Are you using the following as well?

$Source: /cvs/html/language/english/main.php,v $ $Revision: 9.39 $ $Author: nanocaiordo $ $Date: 2006/12/30 13:10:05 $

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.7 / PHP 7.3 / head


Yes.

Brad G
Recovering PHPNuke junkie

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FC4/2.0.59/4.1.12/4.4.4/9.1.2.1


Any other insight on this? Not that it's a big deal but it would be nice to have fixed.

Thanks,

Brad G
Recovering PHPNuke junkie

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FC4/2.0.59/4.1.12/4.4.4/9.1.2.1


i noticed something different between Nano and American post.

Ameican post said $Revision: 9.10 $ but Nano post said $Revision: 9.39 $

Now that is a BIG difference?

Firefox is my Favorite Browser

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS


Noles they are two different files.

I'm kind of boggled. On line 78 of modules/Your_Account/userinfo.php is it _DATESTRING2? And then on line 26 of language/english/main.php is _DATESTRING2 defined as '%A, %B %d'?

What happens if you changed line 78 of modules/Your_Account/userinfo.php to for example, _DATESTRING4?

Diagon Alley - Top Design

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/1.3.37/4.1.21-standard/4.4.4/9.1.1


The problem is that datestring2 is inadequate for anything other than statistics, where it is used. datestring4 is a different application, though the correct format.

The problem and solution is the same as it was for forums viewtopic - ideally we need an additional, more appropriate datestring, but that means changing all language files. The short fix means it is hard coded.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Yeah but my datestring2 is like "08-Apr-2003" and American's is like "Tuesday, March 18." How'd that happen?

Diagon Alley - Top Design

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/1.3.37/4.1.21-standard/4.4.4/9.1.1


main.php
define('_DATESTRING2','%A, %B %d');
define('_DATESTRING3','%d-%b-%Y');

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Yes, that's what I'm trying to ask him because he says he has the same revision that I have, yet mine says that and his must say something else. Or else modules/Your_Account/userinfo.php does not use datestring2. One of the two.

Diagon Alley - Top Design

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/1.3.37/4.1.21-standard/4.4.4/9.1.1

All times are UTC