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;
|
||||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue