return %versions;
}
=head2 timezone
my $C4::Context->timzone
Returns a timezone code for the instance of Koha
=cut
sub timezone {
my $self = shift;
my $timezone = C4::Context->config('timezone') || $ENV{TZ} || 'local';
return $timezone;
=head2 tz
sub tz {
if (!defined $context->{tz}) {
$context->{tz} = DateTime::TimeZone->new(name => 'local');
my $timezone = $self->timezone;
$context->{tz} = DateTime::TimeZone->new(name => $timezone);
return $context->{tz};
my ( %encoding_attr, $encoding_query, $tz_query, $sql_mode_query );
my $tz = $ENV{TZ};
my $tz = C4::Context->timezone;
if ( $db_driver eq 'mysql' ) {
%encoding_attr = ( mysql_enable_utf8 => 1 );
$encoding_query = "set NAMES 'utf8mb4'";
-