Fork me on GitHub

#1 2012-07-30 08:20:04

gotard
Member
From: Poland
Registered: 2012-06-27
Posts: 3
Website

[FIXED] Expiration Date

Hi, I had trying to set Expiration Date.
As I set 2012-08-01 I get 1999-12-01, and 2005-06-03 when setting 2012-09-01 wink
Any suggestions?

Offline

#2 2012-07-30 15:37:09

s0600204
Member
From: UK
Registered: 2012-01-22
Posts: 118
Website

Re: [FIXED] Expiration Date

Hi gotard,

I see your problem.

The only way the system will accept the expiration date (and get it correct) is if you enter it as DD/MM/YYYY.

Admittedly the fact that when you return to the user edit page it outputs it as YYYY-MM-DD is a problem. (As the next time you hit 'save' it will use this new value and get it wrong)

If you feel like editing the code that powers eyeControl, the simplest fix is simply:

  • Go to [EYEROOT]/apps/eyeControl/events/edituser.eyecode

  • Replace lines 38-39

    	$date = /* utf8 */ explode('/', $GLOBALS['eyeControl_edituser_textbox_expire']->text);
    	$exp = mktime(0,0,0,$date[1],$date[0],$date[2]);

    with

    	$exp = strtotime($GLOBALS['eyeControl_edituser_textbox_expire']->text);

After this, you will be able to enter the date as YYYY-MM-DD.

Edit: Didn't finish the path to the file to edit. Sorry.

Last edited by s0600204 (2012-08-03 18:22:39)

Offline

#3 2012-08-22 14:42:09

gotard
Member
From: Poland
Registered: 2012-06-27
Posts: 3
Website

Re: [FIXED] Expiration Date

Now it work just fine, thank You!

Offline

Board footer

Powered by FluxBB