lc_time_utc_to_local (public)

 lc_time_utc_to_local time_value [ tz ]

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

Converts a Universal Time to local time for the specified timezone.

Parameters:
time_value - UTC time in the ISO datetime format.
tz (optional) - Timezone that must exist in tz_data table.
Returns:
Local time

Partial Call Graph (max 5 caller/called nodes):
%3 test_lang_test__lc_procs lang_test__lc_procs (test acs-lang) lc_time_utc_to_local lc_time_utc_to_local test_lang_test__lc_procs->lc_time_utc_to_local lang::conn::timezone lang::conn::timezone (public) lc_time_utc_to_local->lang::conn::timezone lc_time_tz_convert lc_time_tz_convert (public) lc_time_utc_to_local->lc_time_tz_convert

Testcases:
lang_test__lc_procs
Source code:
    if { $tz eq "" } {
        set tz [lang::conn::timezone]
    }

    set local_time [lc_time_tz_convert -from UTC -to $tz -time_value $time_value]

    if {$local_time eq ""} {
        #
        # An empty result normally means a broken date or timezone. We
        # throw a warning in this case.
        #
        ns_log warning "lc_time_utc_to_local: Timezone adjustment in ad_localization.tcl found no conversion to UTC for $time_value $tz"
    }

    return $local_time
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-lang/tcl/localization-procs.xql

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