What is the rule to use date/time format? I see there are “dateFormat” and “dateFormatPHP” defined in gibboni18N table, but seems not used systemwide. While adding new modules, is it good to follow this column definition? Or any rule I need to follow to use date/time format?
These session variables are set on login and depend on a) system-wide language setting b) personal language setting and c) session language setting. These variables should be used all around the system to set the format so the user enjoys a consistent experience. We did find some instances in v9.1 that were not using the variable, and these have been fixed in v10. If you want to check your instances against the dev code (https://github.com/GibbonEdu/core/tree/Gibbonv9.2.00), you can see if they have been fixed, if not, let us know.
It just occurred to me that as additional modules are not yet translatable, some of them might have date issues like this. If you spot any, please do let me know.
I search branch 9.2.00 and see some codes using data(“d/m/Y”) or date(“d/m”).
C:\temp\core-Gibbonv9.2.00\modules\Timetable Admin\ttDates.php (3 hits)
Line 273: print “” . date(“d/m/Y”,$i) . “
” . $rowSpecial[“name”] . “” ;
Line 281: print “” . date(“d/m/Y”,$i) . “
” . _(‘Timing Change’) . “” ;
Line 284: print “” . date(“d/m/Y”,$i) . “
” . _(‘School Day’) . “” ;
[more can be found in several php files related to time-table.]
OK, I have searched (thanks for the tip ; ) and found and fixed all outstanding interface references. There are still some references to date(“d/m/Y”), but these are not in the interface, they are only behind the scenes.
The latest fixes are committed to the dev branch (https://github.com/GibbonEdu/core/tree/Gibbonv9.2.00), and will be included in v10 when it is released in late June.