CMS MADE SIMPLE FORGE

Frontend Users

 

[#11925] Problems to set the Users expiration date

avatar
Created By: cyrcle (cyrcle)
Date Submitted: Mon Nov 12 05:49:55 -0500 2018

Assigned To: Robert Campbell (calguy1000)
Version: 2.12.2
CMSMS Version: 2.2.8
Severity: Minor
Resolution: Invalid
State: Closed
Summary:
Problems to set the Users expiration date
Detailed Description:
After import users from csv type file, I notice that :
- If expire field isn't specified in csv file, no expiration date is set.
- If expire field is specified in csv file, I have confirmation that users have
been updated but no expiration date is set. (Here I use a date in the format
2038-11-12 00:00:00. The same date format that I get in csv file when I use the
FEU Export Users link in Users tab)
- If I select multiple users in Users tab and select "Set expiry date" in the
dropdown menu at the bottom of the page, no expiration date is set.

In the previous three cases, if I choose a year that is one year less than the
expiry date, the date is accepted and recorded as the expiry date.
The problem seems to be that the default expiration date for the user is used as
a limit (a maximum date that must not be exceeded).

The following tests were done with an expiration date set to 240 months in "Site
Admin / FrontEndUsers Settings".


History

Comments
avatar
Date: 2018-11-22 15:35
Posted By: Robert Campbell (calguy1000)

PHP's max date on 32 bit systems is:  2038-01-18 20:14

<?php
echo strftime('%Y-%m-%d %H:%M',PHP_INT_MAX)."\n";

But, on 64 bit systems no such issue exists.
I tested bulk setting of users to a reasonable date (2030-12-12) on a 32 bit
system, and it worked as expected.



      
Updates

Updated: 2019-02-10 10:33
state: Open => Closed

Updated: 2018-11-22 15:35
resolution_id: => 9