Skip to content

Commit

Permalink
Merge pull request #2298 from constantine2nd/develop
Browse files Browse the repository at this point in the history
Tweak default to date value in order to prevent cache issue
  • Loading branch information
simonredfern committed Oct 19, 2023
2 parents ec0d27b + e14f1c7 commit 2cda8de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion obp-api/src/main/scala/code/api/util/APIUtil.scala
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
oneYearAgo.add(Calendar.YEAR, -1)
oneYearAgo.getTime()
}
def ToDateInFuture = new Date(2100, 0, 1) //Sat Jan 01 00:00:00 CET 4000
def DefaultToDate = new Date()
def oneYearAgoDate = oneYearAgo(DefaultToDate)
val theEpochTime: Date = new Date(0) // Set epoch time. The Unix epoch is 00:00:00 UTC on 1 January 1970.
Expand Down Expand Up @@ -1134,7 +1135,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
case (_, Full(right)) =>
parseObpStandardDate(right.head)
case _ => {
Full(APIUtil.DefaultToDate)
Full(APIUtil.ToDateInFuture)
}
}

Expand Down

0 comments on commit 2cda8de

Please sign in to comment.