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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:45:26+00:00 2026-06-01T18:45:26+00:00

Joda doesn’t allow to create an instance of DateTime in Europe/Moscow time zone pointed

  • 0

Joda doesn’t allow to create an instance of DateTime in Europe/Moscow time zone pointed to 3 July 1916:

DateTimeZone dateTimeZone = DateTimeZone.forTimeZone(TimeZone.getTimeZone("Europe/Moscow"));
Chronology internalCalendar = GJChronology.getInstance(dateTimeZone);
DateTime dt = new org.joda.time.DateTime(1916, 7, 3, 0, 0, 0, 0, internalCalendar);
// Exception thrown:
// java.lang.IllegalArgumentException: Illegal instant due to time zone offset transition: 1916-07-02T21:30:00.000

Exactly period from 00:00:00 to 00:00:47 gives an exception.

AFAICS, there are no special timeshift events at the date in Russia. The closest date is 1 July 1917 when Summer time introduced at the first time.

Is this a bug in Joda or something wrong with me? )

  • 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-01T18:45:27+00:00Added an answer on June 1, 2026 at 6:45 pm

    Here you can read that there was a time zone change on Monday, 3rd July 1916 on 0:00:00/0:00:48. The 48 seconds from 0:00:00 to 0:00:47 were skipped.

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

Sidebar

Related Questions

I'm using the Joda time (1.6) libraries and it keeps returning DateTime objects with
I need to convert a Joda-Time DateTime into a String, in the following format:
Joda-Time library includes different datetime classes DateTime - Immutable replacement for JDK Calendar DateMidnight
What's the best way to tell if one joda time DateTime object is within
Is Joda Time's DateTime class persisted differently when given in the UTC timezone? The
Im new to Joda Time and would like to create an equal (x) number
Is the Joda-Time DateTimeFormatter class thread safe ? Once I get an instance from
We are using Hibernate 3.6.x and Joda-time, persisting DateTime with a org.jadira.usertype.dateandtime.joda.PersistentDateTimeWithZone like so:
Why does Joda Time allow a Period constructor to take two LocalTimes but there
import org.joda.time.LocalDate; public class Test { public static void main(String[] args) { long time=System.currentTimeMillis();

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.