Feature #6838
Expiry date for student in CSV
80%
Description
Hi all,
When you register manualy a student, you can set an expiry date which is aggod thing especially for people based on yearly campaign.
This doesn't exist in CSV and would be a good help.
Files
Associated revisions
History
Updated by Yoselyn Castillo over 6 years ago
- Status changed from New to Assigned
- Assignee set to Yoselyn Castillo
Updated by Yoselyn Castillo over 6 years ago
- % Done changed from 0 to 80
Updated by Eric Petitdemange over 6 years ago
Hi I can't make it working.
Could you give me an example of working import csv please, as I tried using adte:
dd/mm/yyyy
yyyy/mm/dd
yyyy-mm-dd
yyyy-mm-dd hh:mm:ss
Each time the trainee is registered fine, but not the expiry date (I created a field named expiration_date as pair as the database, user table.
Thanks in advance.
Updated by Yoselyn Castillo over 6 years ago
- File example1.csv example1.csv added
Firstly you have to replace main/admin/user_import file as in
https://github.com/chamilo/chamilo-lms/pull/331
Take this example1.csv
Updated by Eric Petitdemange over 6 years ago
Hi,
To ensure I recreated the php file from Github.....
I used your example csv file, but it doesn't work:
The users are registered OK, but "never expires" is selected and the expiry date is not modified on the platform.
On Github, I saw 1 file only to modify.
I don't think that the language is important, I'm using french.
On your CSV example, the dates are "normal" (dd/mm/yyyy), in the database, the format is yyyy-mm-dd. Tis is the only difference (and the name of the column) I see.
I hope this helps :)
expiryDate to the end of the list -refs #6838