Skip to content
Snippets Groups Projects
Commit b44784ea authored by Adam Laskowski's avatar Adam Laskowski
Browse files

SSDM-13524: fixed timestamps parsing

parent 263d8293
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -25,6 +25,7 @@ import org.hibernate.usertype.UserType;
import java.io.Serializable;
import java.sql.*;
import java.text.SimpleDateFormat;
import java.time.ZonedDateTime;
import java.util.Arrays;
import java.util.Date;
import java.util.Objects;
......@@ -73,7 +74,7 @@ public class TimestampArrayType implements UserType
}
private Date parseDate(String date) {
SimpleDateFormat format=new SimpleDateFormat(BasicConstant.CANONICAL_DATE_FORMAT_PATTERN);
SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd HH:mm:ssX");
try{
return format.parse(date);
} catch (Exception e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment