mojira.dev
MC-81208

Times for "world last played" are off by an hour.

The time the world last played is show one hour ahead of current time.
I.e. 18:14 I logged off the world, it is shown as 19:14 in the list of worlds.
Time zone is RTZ2 (UTC+0300)

Attachments

Comments 6

Cannot confirm.
Screenshot: World loaded last at 23:46 local time

> Cannot confirm.

Try harder?

There is something messed up with daylight saving time or so

http://en.wikipedia.org/wiki/Moscow_Time :

In 2011, the Russian government proclaimed that daylight saving time would in future be observed all year round, thus effectively displacing standard time—an action which the government claimed emerged from health concerns attributed to the annual shift back-and-forth between standard time and daylight saving time.[1] On March 27, 2011, Muscovites set their clocks forward for a final time, effectively observing MSD, or UTC+4, permanently.

In July 2014, the State Duma passed a bill repealing the 2011 change, putting Moscow Time on permanent UTC+3.

Minecraft cannot do anything about that, it's a matter of the Java VM.

For technical support please use the Mojang Support Center.

$ cat GetCurrentDateTime.java ; date "+%F %H:%M:%S"; java GetCurrentDateTime
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;

public class GetCurrentDateTime {
public static void main(String[] args) {

DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//get current date time with Date()
Date date = new Date();
System.out.println(dateFormat.format(date));

//get current date time with Calendar()
Calendar cal = Calendar.getInstance();
System.out.println(dateFormat.format(cal.getTime()));

}
}
2015-06-10 12:19:10
2015-06-10 12:19:11
2015-06-10 12:19:11

Pediwikia is never an argument for me.

Even better,

$ cat GetCurrentDateTime.java ; date "+%F %H:%M:%S"; java GetCurrentDateTime; java -version
import java.util.*;
import java.text.*;

public class GetCurrentDateTime {
  public static void main(String[] args) {

    DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    //get current date time with Calendar()
    Calendar cal = Calendar.getInstance();

    System.out.println(dateFormat.format(cal.getTime()) + " (system)");
    dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
    System.out.println(dateFormat.format(cal.getTime()) + " (" + dateFormat.getTimeZone().getID() + ")");
    dateFormat.setTimeZone(TimeZone.getTimeZone("Europe/Moscow"));
    System.out.println(dateFormat.format(cal.getTime()) + " (" + dateFormat.getTimeZone().getID() + ")");

  }
}
2015-06-10 12:40:56
2015-06-10 12:40:56 (system)
2015-06-10 09:40:56 (UTC)
2015-06-10 12:40:56 (Europe/Moscow)
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

The problem was broken Java version used by MC.

AnrDaemon

(Unassigned)

Unconfirmed

Minecraft 1.8.7

Retrieved