Search Results ota_timezone_util
Overview
OTA_TIMEZONE_UTIL is a utility package in the Oracle E-Business Suite Applications (APPS) schema that centralizes time zone conversion and time zone lookup logic for the Oracle Time and Labor (OTA) and Oracle Learning Management modules. Its primary business function is to reconcile date and time values captured in one time zone with the corresponding value in another, and to resolve the time zone context associated with the client, the server, an event, or a learning offering. Because scheduling, resource booking, and event delivery in these modules frequently span multiple geographic regions, consistent time zone handling is essential to prevent misaligned bookings, incorrect attendance records, and reporting discrepancies.
The package is classified as a UTIL component, meaning it is not a business-facing API in its own right but a supporting library invoked by other application logic. ETRM documentation records it as referenced by 17 other packages, confirming its role as a shared dependency within the OTA schema. The header comment, dated January 2012, reflects the R12 code line.
Key Procedures and Functions
The documented interface comprises fourteen procedures and functions. GET_TIMEZONE_ID is the entry point most commonly searched by developers; it accepts a time zone code and returns the corresponding numeric upgrade time zone identifier from FND_TIMEZONES_B. This identifier is the join key used throughout the FND and HZ time zone data model.
- GET_TIMEZONE_ID — resolves a time zone code to its numeric identifier.
- GET_SERVER_TIMEZONE_CODE — returns the time zone code configured for the application server.
- GET_CLIENT_TIMEZONE_VALS — returns the code and name of the client time zone, derived from the CLIENT_TIMEZONE_ID profile option.
- GET_EVENT_TIMEZONE_VALS — returns the time zone code and name associated with a given event.
- GET_TIMEZONE_NAME — returns the display name for a time zone code.
- CONVERT_DATE and CONVERT_DATE_FND — convert a date from a source time zone to a destination time zone.
- CONVERT_DATE_HZ — performs the same conversion through the HZ (Trading Community) time zone path.
- CONVERT_DATEDT_TIME — converts a date-time value between time zones.
- GET_DATEDT — returns the current date-time in the applicable time zone.
- GET_CLASS_DATEDT — returns the current date-time for a class or offering context.
- GET_RESOURCE_BOOKINGDT — returns the date-time relevant to a resource booking.
- GET_DATEDT_TIME and GET_DATE_TIME — helper functions returning date-time components in the appropriate time zone.
Internally, conversion is delegated to FND_TIMEZONES_PVT.ADJUST_DATETIME. The package source shows CONVERT_DATE_HZ retaining the legacy HZ_TIMEZONE_PUB.Convert_DateTime path in commented form, with the FND call active in R12.
Tables Accessed
The package reads from both the FND and HZ time zone tables and from OTA scheduling tables.
- FND_TIMEZONES_B — base table holding time zone codes and UPGRADE_TZ_ID; queried by GET_TIMEZONE_ID.
- FND_TIMEZONES_TL — translation table supplying time zone names.
- FND_TIMEZONES_VL — view joined to resolve code and name for the client time zone.
- HZ_TIMEZONES — Trading Community time zone identifiers used by the HZ conversion path.
- FND_LANGUAGES — language context for translated name resolution.
- OTA_EVENTS, OTA_OFFERINGS, OTA_CATEGORY_USAGES — event and offering context for event and class date-time lookups.
- OTA_RESOURCE_BOOKINGS — resource booking records supplying booking date-times.
Access is read-only through APPS synonyms; the package does not write to these tables.
Usage Notes
OTA_TIMEZONE_UTIL is typically invoked from Oracle Forms, OTA concurrent programs, and custom PL/SQL rather than directly by end users. Any form or report that displays event, offering, or resource booking times should call the appropriate GET_* function to obtain a correctly localized value, or CONVERT_DATE / CONVERT_DATE_HZ to shift a stored date between zones before display or comparison. The CLIENT_TIMEZONE_ID profile option governs client-side resolution, so custom code relying on GET_CLIENT_TIMEZONE_VALS must ensure the profile is set. When writing new code, prefer the FND-based conversion functions over the HZ variants, consistent with the R12 implementation shown in the package body.
-
PACKAGE BODY: APPS.OTA_TIMEZONE_UTIL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TIMEZONE_UTIL, status:VALID,
-
PACKAGE BODY: APPS.OTA_TIMEZONE_UTIL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TIMEZONE_UTIL, status:VALID,
-
SYNONYM: APPS.FND_TIMEZONES_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FND_TIMEZONES_TL, status:VALID,
-
PACKAGE: APPS.OTA_TIMEZONE_UTIL
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OTA_TIMEZONE_UTIL, status:VALID,
-
PACKAGE: APPS.OTA_TIMEZONE_UTIL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OTA_TIMEZONE_UTIL, status:VALID,
-
SYNONYM: APPS.FND_TIMEZONES_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_TIMEZONES_TL, status:VALID,
-
SYNONYM: APPS.OTA_CATEGORY_USAGES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_CATEGORY_USAGES, status:VALID,
-
SYNONYM: APPS.OTA_CATEGORY_USAGES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_CATEGORY_USAGES, status:VALID,
-
PACKAGE BODY: APPS.OTA_TIMEZONE_UPGRADE
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TIMEZONE_UPGRADE, status:VALID,
-
PACKAGE BODY: APPS.OTA_CHA_BUS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_CHA_BUS, status:VALID,
-
PACKAGE BODY: APPS.OTA_TIMEZONE_UPGRADE
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TIMEZONE_UPGRADE, status:VALID,
-
PACKAGE BODY: APPS.OTA_CHA_BUS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_CHA_BUS, status:VALID,
-
PACKAGE BODY: APPS.OTA_TRB_BUS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TRB_BUS, status:VALID,
-
PACKAGE BODY: APPS.OTA_TRB_API_PROCEDURES
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TRB_API_PROCEDURES, status:VALID,
-
PACKAGE BODY: APPS.OTA_LEARNER_ACCESS_UTIL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_LEARNER_ACCESS_UTIL, status:VALID,
-
PACKAGE BODY: APPS.OTA_LRNR_ENROLL_UNENROLL_WF
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_LRNR_ENROLL_UNENROLL_WF, status:VALID,
-
PACKAGE BODY: APPS.OTA_LRNG_PATH_MEMBER_UTIL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_LRNG_PATH_MEMBER_UTIL, status:VALID,
-
SYNONYM: APPS.FND_TIMEZONES_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FND_TIMEZONES_B, status:VALID,
-
PACKAGE BODY: APPS.OTA_TRAINING_RECORD
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TRAINING_RECORD, status:VALID,
-
PACKAGE: APPS.FND_TIMEZONES_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_TIMEZONES_PVT, status:VALID,
-
PACKAGE BODY: APPS.OTA_TRB_API_PROCEDURES
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TRB_API_PROCEDURES, status:VALID,
-
PACKAGE BODY: APPS.OTA_LRNR_ENROLL_UNENROLL_WF
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_LRNR_ENROLL_UNENROLL_WF, status:VALID,
-
PACKAGE BODY: APPS.OTA_LEARNER_ACCESS_UTIL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_LEARNER_ACCESS_UTIL, status:VALID,
-
SYNONYM: APPS.HZ_TIMEZONES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_TIMEZONES, status:VALID,
-
PACKAGE BODY: APPS.OTA_LO_UTILITY
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_LO_UTILITY, status:VALID,
-
PACKAGE BODY: APPS.OTA_LEARNER_ENROLL_REVIEW_SS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_LEARNER_ENROLL_REVIEW_SS, status:VALID,
-
SYNONYM: APPS.OTA_RESOURCE_BOOKINGS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_RESOURCE_BOOKINGS, status:VALID,
-
PACKAGE BODY: APPS.OTA_MANDATORY_ENROLL_UTIL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_MANDATORY_ENROLL_UTIL, status:VALID,
-
PACKAGE BODY: APPS.OTA_TRB_BUS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TRB_BUS, status:VALID,
-
PACKAGE BODY: APPS.OTA_TDB_BUS2
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TDB_BUS2, status:VALID,
-
SYNONYM: APPS.HZ_TIMEZONES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_TIMEZONES, status:VALID,
-
PACKAGE BODY: APPS.OTA_TDB_BUS2
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TDB_BUS2, status:VALID,
-
PACKAGE BODY: APPS.OTA_LEARNER_ENROLL_SS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_LEARNER_ENROLL_SS, status:VALID,
-
PACKAGE BODY: APPS.OTA_INITIALIZATION_WF
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_INITIALIZATION_WF, status:VALID,
-
PACKAGE BODY: APPS.OTA_TRAINING_RECORD
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TRAINING_RECORD, status:VALID,
-
PACKAGE BODY: APPS.OTA_UTILITY
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_UTILITY, status:VALID,
-
PACKAGE BODY: APPS.OTA_INITIALIZATION_WF
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_INITIALIZATION_WF, status:VALID,
-
PACKAGE BODY: APPS.OTA_EVT_BUS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_EVT_BUS, status:VALID,
-
PACKAGE BODY: APPS.OTA_TDB_BUS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TDB_BUS, status:VALID,
-
PACKAGE BODY: APPS.OTA_EVT_BUS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_EVT_BUS, status:VALID,
-
PACKAGE BODY: APPS.OTA_TDB_BUS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TDB_BUS, status:VALID,
-
PACKAGE BODY: APPS.OTA_UTILITY
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_UTILITY, status:VALID,
-
PACKAGE: APPS.OTA_TIMEZONE_UTIL
12.2.2
-
PACKAGE BODY: APPS.OTA_LO_UTILITY
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_LO_UTILITY, status:VALID,
-
SYNONYM: APPS.OTA_EVENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_EVENTS, status:VALID,
-
PACKAGE: APPS.OTA_TIMEZONE_UTIL
12.1.1
-
SYNONYM: APPS.OTA_EVENTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_EVENTS, status:VALID,
-
SYNONYM: APPS.FND_TIMEZONES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_TIMEZONES_B, status:VALID,
-
PACKAGE BODY: APPS.OTA_MANDATORY_ENROLL_UTIL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_MANDATORY_ENROLL_UTIL, status:VALID,
-
SYNONYM: APPS.OTA_RESOURCE_BOOKINGS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_RESOURCE_BOOKINGS, status:VALID,