CLASS METHODS

extensions

Returns a hash or hash ref information about the extensions that are currently installed and enabled in this Bugzilla.

History

Added in Bugzilla 3.2.

As of Bugzilla 3.6, the names of extensions are canonical names that the extensions define themselves. Before 3.6, the names of the extensions depended on the directory they were in on the Bugzilla server.

Parameters

(none)

Returns

The hash contains the names of extensions as keys, and the values are a hash.

That hash contains a single key version, which is the version of the extension, or 0 if the extension hasn't defined a version.

A user in the tweakparams group can access all existing parameters. New parameters can appear or obsolete parameters can disappear depending on the version of Bugzilla and on extensions being installed. The list of parameters returned by this method is not stable and will never be stable.

time

Gets information about what time the Bugzilla server thinks it is, and what timezone it's running in.

History

Added in Bugzilla 3.4.

Note: As of Bugzilla 3.6, this method returns all data as though the server were in the UTC timezone, instead of returning information in the server's local timezone.

Parameters

(none)

Returns

A hash with the following items:

db_time

db_time (DateTime) - The current time in UTC, according to the Bugzilla database server.

Note that Bugzilla assumes that the database and the webserver are running in the same time zone. However, if the web server and the database server aren't synchronized for some reason, this is the time that you should rely on for doing searches and other input to the WebService.

web_time

web_time (DateTime) - This is the current time in UTC, according to Bugzilla's web server.

This might be different by a second from "db_time" since this comes from a different source. If it's any more different than a second, then there is likely some problem with this Bugzilla instance. In this case you should rely on the "db_time", not the "web_time".

web_time_utc

Identical to "web_time". (Exists only for backwards-compatibility with versions of Bugzilla before 3.6.)

tz_name

tz_name (string) - The literal string UTC. (Exists only for backwards-compatibility with versions of Bugzilla before 3.6.)

tz_short_name

tz_short_name (string) - The literal string UTC. (Exists only for backwards-compatibility with versions of Bugzilla before 3.6.)

tz_offset

tz_offset (string) - The literal string +0000. (Exists only for backwards-compatibility with versions of Bugzilla before 3.6.)

timezone

$timezone = BZ::Client::Bugzilla->timezone( $client );

Returns the Bugzilla servers timezone as a numeric value. This method is deprecated: Use "time" instead.

Note: as of Bugzilla 3.6 the timezone is always +0000 (UTC) Also, Bugzilla has depreceated but not yet removed this API call