-
Notifications
You must be signed in to change notification settings - Fork 993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed issue #18381: PluginSetting type date must be saved as a common datetime string #2753
Fixed issue #18381: PluginSetting type date must be saved as a common datetime string #2753
Conversation
… datetime string Dev: use saveformat option Dev: Can be set by default to "Y-m-d H:i" ? Dev: send array of settings, check if datetime and datetimesaveformat is set in array
About the last CS : i'm OK to rewrite this part when BOTH commit related was merged … #2743 : touch same part … |
Small conflict that needs to be fixed here. |
# Conflicts: # application/extensions/SettingsWidget/SettingsWidget.php
Done |
Dev: add an static API function
There still the decision about default : set format or not ? |
SonarCloud Quality Gate failed. |
@olleharstedt and @maziminke any advice here ? My opinion : default is set to Did we set default or leave at User language preference. |
I mentioned here: But I say it here again as to unify conversations: |
backward VS unpredictable Let's go for unpredictable :) |
… datetime string. Unit tests added.
…hub.com/LimeSurvey/LimeSurvey into bug/18381_pluginsetting_date_saveformat
@gabrieljenik : finally i use PluginsValue , OK ? On i review all system using only $plugin->settings , i add a Demo plugins showing way to set. I think we don't need new test since tester is done (… and finally i setup my phpunit instance …) |
For me the best and most descriptive is
And also you tested the demo plugin :) |
All done :) |
I refuse to fix |
No : see the last phpDoc , we use getDateFormatData : then need the integer for the orginal format We have only the f date format, and can be anything "Y" or "H:i" or just "m" etc … |
Great conflict … 😡 |
# Conflicts: # tests/data/plugins/SettingsPlugin.php # tests/functional/backend/SettingsPluginTest.php
… datetime string. Tests added.
SonarCloud Quality Gate failed. |
Dev: use saveformat option
Dev: Can be set by default to "Y-m-d H:i" ?
Dev: send array of settings, check if datetime and datetimesaveformat is set in array