Skip to content

Commit

Permalink
#26890 include in 23.01.10
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Dec 28, 2023
1 parent d566af1 commit adfcc47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
import io.vavr.Tuple2;
import io.vavr.control.Try;
import java.io.File;
import java.sql.Timestamp;
import java.time.Instant;
import java.util.Date;
import java.util.HashMap;
Expand Down Expand Up @@ -311,6 +312,11 @@ private Map<String, Object> getContentletMapFromImmutable(final Contentlet immut
}
}

//Backwards compatibility for Date Fields, should be Timestamp
if(value instanceof Date){
value = new Timestamp(((Date) value).getTime());
}

map.put(field.variable(), value);
}
return map;
Expand Down
1 change: 1 addition & 0 deletions hotfix_tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,4 @@ This maintenance release includes the following code fixes:
149. https://github.com/dotCMS/core/issues/26970 : GraphQL Cache not working #26970
150. https://github.com/dotCMS/core/issues/26934 : Add Catalina Log Back #26934
151. https://github.com/dotCMS/core/issues/26926 : Add left indexes to inode.inode and identifier.id #26926
152. https://github.com/dotCMS/core/issues/26890 : GraphQL Dates not using the right format #26890

0 comments on commit adfcc47

Please sign in to comment.