Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8546783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:06:53+00:00 2026-06-11T13:06:53+00:00

I have the following query. It returns the current time in different regions. It

  • 0

I have the following query. It returns the current time in different regions. It works fine for most of the regions which are in the table V@timezone_names. But this query returns the wrong result for:

  1. ‘Asia/Tehran’ with +4:30 time zone differences
  2. ‘America/Caracas’ with -4:30 time zone differences

My query is:

select CAST(FROM_TZ( CAST(current_date AS TIMESTAMP)
                   , sessiontimezone)
             AT TIME ZONE 'America/Caracas' AS DATE) 
  from dual;

You can see the current time in different countries-cities here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:06:54+00:00Added an answer on June 11, 2026 at 1:06 pm

    Oracle issues timezone file patches from time to time to correct bugs and for changes introduced by countries and territories changing the rules for their timezones. Oracle support note 412160.1 shows how you can check which timezone file you have, and how to update. (The check is simple in 10g – SELECT version FROM v$timezone_file).

    Under 11g with timezone file version 14, I get -4:30 for Caracas and +4:30 for Tehran, displaying times matching the site you linked to.

    Looks like Caracas changed its timezone in late 2007, so I guess you’re showing -4:00; and Tehran had DST changes in 2008 (or reintroduced DST, not sure), so I guess you’re showing +3:30. It seems reasonable to assume that your current timezone predates those changes; by default 10g will be on v3 or v4.

    I’d suggest you update to the latest timezone file (version 18); you’ll need to look at that support note to see how to do it for your circumstances, or more specifically note 1448706.1, ‘Applying the DSTv18 update for the Oracle Database’. You can get it as patch 13417321. If you still find a problem when using the latest patch then you can raise a service request with Oracle to get it fixed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following query which returns a list of questions and the possible
I have the following MQL query which successfully returns the record for William Shakespeare.
Say I have a query which returns the following result: | val | type
I have following query which take more than a minute to execute, how can
I have the following schema, and would like to do a query that returns
I have written the following function in Java. This function returns current timestamp by
I have a query which takes a long time and I want to optimize
I have following query: $query=SELECT language_value, votes, user_id FROM labels WHERE approved=1 AND label_value=.
I have following query , select * from process where name like 'abc'; now
I have following query and data saved in a MySQL database with a timestamp

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.