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 8155491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:41:04+00:00 2026-06-06T16:41:04+00:00

Today I found a very mysterious bug in the code. I have used the

  • 0

Today I found a very mysterious bug in the code. I have used the JodaTime library for a while and it has been consistent ever since.

DateTime dateTime = DateHelper.formatDateTime("25/06/2012");
TestHelper.spot(dateTime);
TestHelper.spot(dateTime.toDate());

Results –

2012-06-25T00:00:00.000+05:30
Mon Jun 25 00:00:00 IST 2012

But in a different java application –

2012-06-25T00:00:00.000+05:30
Sun Jun 24 18:30:00 GMT 2012

DateHelper.formatDateTime() method

public static DateTime formatDateTime(String text) {
    DateTimeFormatter format = DateTimeFormat.forPattern("dd/MM/yyyy");
    return format.parseDateTime(text);
}

The only issue I suspect is the format (GMT and IST). What can I do to maintain consistency.

  • 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-06T16:41:05+00:00Added an answer on June 6, 2026 at 4:41 pm

    I put a VM parameter stating

    -Duser.timezone="+05:30"
    

    And after I removed it everything is working like normal. But the problem now is that I can’t connect to Oracle 9i database. It’s giving me the below error.

    java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-01882: timezone region  not found
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While searching a bug in my code today I found a strange thing. When
I have been introduced to xpath today and it seems to be very powerful
I've been using c++ 0x for a while now and have been very much
I've run into a very odd bug today. I have a button on a
I found a very strange bug with Firebreath today. I was trying to compile
I am writing my first ever Shell script today. I think I have found
Today I found LiquiBase project and I think it is very interesting. I would
Today, I found out that you can write such code in C++ and compile
Today I found this query in our code that pulls up a list of
I've been developing an app specifically for modern browsers and have made very heavy

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.