_acs-lang__set_timezone_not_logged_in (private)

 _acs-lang__set_timezone_not_logged_in

Defined in packages/acs-lang/tcl/test/acs-lang-test-procs.tcl

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) ad_conn ad_conn (public) _acs-lang__set_timezone_not_logged_in _acs-lang__set_timezone_not_logged_in _acs-lang__set_timezone_not_logged_in->aa_equals _acs-lang__set_timezone_not_logged_in->aa_log _acs-lang__set_timezone_not_logged_in->aa_log_result _acs-lang__set_timezone_not_logged_in->aa_true _acs-lang__set_timezone_not_logged_in->ad_conn

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    set user_id [ad_conn user_id]

    ad_conn -set user_id 0
    aa_equals "Fallback to system timezone when no user"  [lang::conn::timezone]  [lang::system::timezone]

    set error_p [catch { lang::user::set_timezone [lang::system::timezone] } errmsg]
    aa_true "Error when setting user timezone when user not logged in" $error_p

    # Reset the user_id
    ad_conn -set user_id $user_id
}} {
          aa_log "Running testcase body $body_count"
          set ::__aa_test_indent [info level]
          set catch_val [catch $testcase_body msg]
          if {$catch_val != 0 && $catch_val != 2} {
              aa_log_result "fail" "set_timezone_not_logged_in (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo"
          }
          incr body_count
        }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: