Changeset 735 for trunk/lib/App.inc.php
- Timestamp:
- Oct 30, 2020 11:44:05 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r734 r735 962 962 } 963 963 964 // Make sure to log in the system's locale.964 // Use the system's locale for log messages (return to previous setting below). 965 965 $locale = setlocale(LC_TIME, 0); 966 966 setlocale(LC_TIME, 'C'); 967 968 // Logs should always be in UTC (return to previous setting below). 969 $tz = date_default_timezone_get(); 970 date_default_timezone_set('UTC'); 967 971 968 972 // Data to be stored for a log event. … … 1017 1021 // Restore original locale. 1018 1022 setlocale(LC_TIME, $locale); 1023 1024 // Restore original timezone. 1025 date_default_timezone_set($tz); 1019 1026 1020 1027 return true;
Note: See TracChangeset
for help on using the changeset viewer.