Univention Bugzilla – Bug 46797
Make date format in the importer configurable
Last modified: 2023-06-12 15:39:51 CEST
Currently it is only possible to import users with one specific date format (). Unfortunately that it is not very user friendly because in almost all cases the import date format of customers is somehow different. This leads to manual adjustments. I suggest a configruation variable in the import configuration which can be defined like pythons "strptime" e.g. '%b %d %Y %I:%M%p'
Is the date format for the birthday or another attribute? There is a ucs-test that shows how to rewrite the string for a birthday in a format hook from '%Y.%b.%d' to '%Y-%m-%d': * The test: ucs-test-ucsschool/90_ucsschool/224_import-users_test_format_hook * the format hook: ucs-test-ucsschool/90_ucsschool/testformathookpy Format hooks are there to solve exactly the described problem, but in a more general way that can be used for all properties. Can the solution for this bug be just that: Adding an easily customizable format hook to the hooks repository?
This issue has been filed against UCS@school 4.3 or earlier. UCS 4.3 is out of maintenance and UCS components have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.