Skip to content

Commit 54083d8

Browse files
authored
DFWPDate was not working right (#566)
Issue: 83668
1 parent 2bc38d2 commit 54083d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/com/genexus/util/DelimitedFilesSafe.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ public byte dfwpdate(Date date, String fmt, String sep)
866866
calendar.setTime(date);
867867
day = CommonUtil.padl(Integer.toString(calendar.get(Calendar.DAY_OF_MONTH)), 2, "0");
868868
month = CommonUtil.padl(Integer.toString(calendar.get(Calendar.MONTH) + 1), 2, "0");
869-
year = CommonUtil.padl(Integer.toString(calendar.get(Calendar.YEAR) + 1900), 4, "0");
869+
year = CommonUtil.padl(Integer.toString(calendar.get(Calendar.YEAR)), 4, "0");
870870
}
871871

872872
if (toWrite == null)

0 commit comments

Comments
 (0)