lang::conn::timezone (public)

 lang::conn::timezone

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

Get this connection's timezone. This is the user timezone, if set, otherwise the system timezone.

Returns:
a timezone name from acs-reference package (e.g., Asia/Tokyo, America/New_York)

Partial Call Graph (max 5 caller/called nodes):
%3 test_a_foreign_calendar_user a_foreign_calendar_user (test calendar) lang::conn::timezone lang::conn::timezone test_a_foreign_calendar_user->lang::conn::timezone test_lang_test__lc_procs lang_test__lc_procs (test acs-lang) test_lang_test__lc_procs->lang::conn::timezone test_lc_time_fmt_Z_timezone lc_time_fmt_Z_timezone (test acs-lang) test_lc_time_fmt_Z_timezone->lang::conn::timezone test_set_get_timezone set_get_timezone (test acs-lang) test_set_get_timezone->lang::conn::timezone test_set_timezone_not_logged_in set_timezone_not_logged_in (test acs-lang) test_set_timezone_not_logged_in->lang::conn::timezone ad_conn ad_conn (public) lang::conn::timezone->ad_conn lang::system::timezone lang::system::timezone (public) lang::conn::timezone->lang::system::timezone lang::user::timezone lang::user::timezone (public) lang::conn::timezone->lang::user::timezone lc_time_conn_to_system lc_time_conn_to_system (public) lc_time_conn_to_system->lang::conn::timezone lc_time_local_to_utc lc_time_local_to_utc (public) lc_time_local_to_utc->lang::conn::timezone lc_time_system_to_conn lc_time_system_to_conn (public) lc_time_system_to_conn->lang::conn::timezone lc_time_utc_to_local lc_time_utc_to_local (public) lc_time_utc_to_local->lang::conn::timezone packages/acs-lang/tcl/localization-data-init.tcl packages/acs-lang/ tcl/localization-data-init.tcl packages/acs-lang/tcl/localization-data-init.tcl->lang::conn::timezone

Testcases:
lang_test__lc_procs, set_get_timezone, set_timezone_not_logged_in, lc_time_fmt_Z_timezone, a_foreign_calendar_user
Source code:
    set timezone {}
    if { [ad_conn isconnected] } {
        set timezone [lang::user::timezone]
    }

    if { $timezone eq "" } {
        # No user timezone, return the system timezone
        set timezone [lang::system::timezone]
    }
    return $timezone
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-lang/tcl/locale-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: