mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08: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
|
|
@ -1,5 +1,6 @@
|
||||||
package mage.db.model;
|
package mage.db.model;
|
||||||
|
|
||||||
|
import com.j256.ormlite.field.DataType;
|
||||||
import com.j256.ormlite.field.DatabaseField;
|
import com.j256.ormlite.field.DatabaseField;
|
||||||
import com.j256.ormlite.table.DatabaseTable;
|
import com.j256.ormlite.table.DatabaseTable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
@ -23,7 +24,7 @@ public class Feedback {
|
||||||
private String email;
|
private String email;
|
||||||
@DatabaseField
|
@DatabaseField
|
||||||
private String host;
|
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;
|
private Date createdDate;
|
||||||
|
|
||||||
@DatabaseField
|
@DatabaseField
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
package mage.db.model;
|
package mage.db.model;
|
||||||
|
|
||||||
|
import com.j256.ormlite.field.DataType;
|
||||||
import com.j256.ormlite.field.DatabaseField;
|
import com.j256.ormlite.field.DatabaseField;
|
||||||
import com.j256.ormlite.table.DatabaseTable;
|
import com.j256.ormlite.table.DatabaseTable;
|
||||||
|
|
||||||
|
|
@ -15,7 +16,7 @@ public class Log {
|
||||||
|
|
||||||
@DatabaseField
|
@DatabaseField
|
||||||
private String key;
|
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;
|
private Date createdDate;
|
||||||
@DatabaseField
|
@DatabaseField
|
||||||
private String arg0;
|
private String arg0;
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ public class ExpansionInfo {
|
||||||
protected String code;
|
protected String code;
|
||||||
@DatabaseField
|
@DatabaseField
|
||||||
protected String blockName;
|
protected String blockName;
|
||||||
@DatabaseField
|
@DatabaseField(dataType = DataType.DATE_STRING, format = "yyyy-MM-dd HH:mm:ss")
|
||||||
protected Date releaseDate;
|
protected Date releaseDate;
|
||||||
@DatabaseField(dataType = DataType.ENUM_STRING)
|
@DatabaseField(dataType = DataType.ENUM_STRING)
|
||||||
protected SetType type;
|
protected SetType type;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue