mirror of
https://github.com/correl/mage.git
synced 2025-04-14 01:01:08 -09:00
Fixed wrong date format on client/server databases;
This commit is contained in:
parent
89f8d57935
commit
d76c764d64
3 changed files with 5 additions and 3 deletions
Mage.Common/src/main/java/mage/db/model
Mage/src/main/java/mage/cards/repository
|
@ -1,5 +1,6 @@
|
|||
package mage.db.model;
|
||||
|
||||
import com.j256.ormlite.field.DataType;
|
||||
import com.j256.ormlite.field.DatabaseField;
|
||||
import com.j256.ormlite.table.DatabaseTable;
|
||||
import java.util.Date;
|
||||
|
@ -23,7 +24,7 @@ public class Feedback {
|
|||
private String email;
|
||||
@DatabaseField
|
||||
private String host;
|
||||
@DatabaseField(columnName = "created_dt")
|
||||
@DatabaseField(columnName = "created_dt", dataType = DataType.DATE_STRING, format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdDate;
|
||||
|
||||
@DatabaseField
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package mage.db.model;
|
||||
|
||||
import com.j256.ormlite.field.DataType;
|
||||
import com.j256.ormlite.field.DatabaseField;
|
||||
import com.j256.ormlite.table.DatabaseTable;
|
||||
|
||||
|
@ -15,7 +16,7 @@ public class Log {
|
|||
|
||||
@DatabaseField
|
||||
private String key;
|
||||
@DatabaseField(columnName = "created_dt")
|
||||
@DatabaseField(columnName = "created_dt", dataType = DataType.DATE_STRING, format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdDate;
|
||||
@DatabaseField
|
||||
private String arg0;
|
||||
|
|
|
@ -20,7 +20,7 @@ public class ExpansionInfo {
|
|||
protected String code;
|
||||
@DatabaseField
|
||||
protected String blockName;
|
||||
@DatabaseField
|
||||
@DatabaseField(dataType = DataType.DATE_STRING, format = "yyyy-MM-dd HH:mm:ss")
|
||||
protected Date releaseDate;
|
||||
@DatabaseField(dataType = DataType.ENUM_STRING)
|
||||
protected SetType type;
|
||||
|
|
Loading…
Add table
Reference in a new issue