Project

General

Profile

« Previous | Next » 

Revision 46127

fix dateOfTransformation Pattern

View differences:

LodMapper.java
29 29
 * export
30 30
 */
31 31
public class LodMapper extends TableMapper<Text, Text> {
32
    private static final String DATE_OF_TRANSFORMATION_PATTERN = "yyyy-MM-dd'T'HH:mm:ss'Z'";
32
    private static final String DATE_OF_TRANSFORMATION_PATTERN = "yyyy-MM-dd'T'HH:mm:ss";
33 33
    private static final String LAST_EXECUTION_DATE_PATTERN = "yyyy-MM-dd";
34 34
    private Logger log = Logger.getLogger(this.getClass());
35 35
    private EntityConfigTable entityConfigTable;
......
101 101
    private boolean isUpdated(Oaf oaf) throws IOException {
102 102
        String dateOfTransformationString = "";
103 103
        try {
104
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_OF_TRANSFORMATION_PATTERN, Locale.ITALY);
104
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_OF_TRANSFORMATION_PATTERN, Locale.getDefault());
105 105
            simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
106 106
            dateOfTransformationString = oaf.getEntity().getDateoftransformation();
107 107
            if (dateOfTransformationString == null || dateOfTransformationString.isEmpty() || dateOfTransformationString.equals(" ")) {

Also available in: Unified diff