]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb.js: Add UI for selecting common timezone to display dates
[Gitweb] / gitweb.perl
index ddf8ad212a98d2704ccb7858978c5217c83ebc91f7704da79c6d5fe635a011fa..79808b84d1fa9d50c595b49d112c3f12ab751f3a6fe76e1358da605cd361e2af 100755 (executable)
@@ -3892,7 +3892,8 @@ sub git_footer_html {
                      (gitweb_check_feature('javascript-actions') ?
                      qq!       fixLinks();\n! : '').
                      # last parameter to onloadTZSetup must be CSS class used by format_timestamp_html
                      (gitweb_check_feature('javascript-actions') ?
                      qq!       fixLinks();\n! : '').
                      # last parameter to onloadTZSetup must be CSS class used by format_timestamp_html
-                     qq!       onloadTZSetup('local', 'gitweb_tz', 'datetime');\n!.
+                     qq!       var tz_cookie = { name: 'gitweb_tz', expires: 14, path: '/' };\n!. # in days
+                     qq!       onloadTZSetup('local', tz_cookie, 'datetime');\n!.
                      qq!};\n!.
                      qq!</script>\n!;
        }
                      qq!};\n!.
                      qq!</script>\n!;
        }
This page took 0.282778 seconds and 4 git commands to generate.