Up to [LON-CAPA] / loncom
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Current tag: version_2_8_X
- Backport 1.428.
- Backport 1.415
- When course activity log data are stored in $cnum_$cdom_activity tables, timestamps are stored using lonmysql::sqltime() which employs the server localtime. - Student Activity displayed with trackstudent needs to have these timestamps converted to the time zone set for the course. - &server_timezone_handler() in lond retrieves server time zone from /etc/sysconfig/clock or /etc/timezone depending on distro. - &get_server_timezone() in lonnet.pm gets server time zone from course's homeserver. - &gettimezone() in lonlocal.pm can now take a timezone as an argument. - will validate it, and return it if valid, 'local' otherwise - &convert_timezone() in lontrackstudent.pm converts timestamps prior to display, and includes course time zone.