Bukkit Persistence (Avaje EBean) and Dates

Discussion in 'Plugin Development' started by Mixcoatl, Apr 4, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Mixcoatl

    Ladies, gentlemen:

    I've been playing around with the new Bukkit persistence and I've encountered a peculiarity. When the persistence layer reads a date-time from my SQLite database, it mangles it badly. I can verify that the date is correct in the database using SQLiteAdmin, but it's off by 40ish years when loaded into my plug-in.

    Has anybody seen this or know of a simple fix? I've been considering trying java.util.Calendar or the java.sql.Date class, but I would prefer to avoid these if at all possible.
     
Thread Status:
Not open for further replies.

Share This Page