Skip to content

Commit 2098658

Browse files
committed
use actual time in code
1 parent 80d746f commit 2098658

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

  • football/src/main/scala/com/gu/mobile/notifications/football

football/src/main/scala/com/gu/mobile/notifications/football/Lambda.scala

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,7 @@ object Lambda extends Logging {
6464
lazy val liveActivityHandler = new LiveActivityHandler(configuration, dynamoDBClient, liveActivitiesTableName)
6565

6666
def getZonedDateTime(): ZonedDateTime = {
67-
val zonedDateTime = if (configuration.stage == "CODE") {
68-
val is = URI.create("https://hdjq4n85yi.execute-api.eu-west-1.amazonaws.com/Prod/getTime").toURL.openStream()
69-
val json = Json.parse(Source.fromInputStream(is).mkString)
70-
ZonedDateTime.parse((json \ "currentDate").as[String])
71-
} else {
72-
ZonedDateTime.now()
73-
}
67+
val zonedDateTime = ZonedDateTime.now()
7468
logger.info(s"Using date time: $zonedDateTime")
7569
zonedDateTime
7670
}

0 commit comments

Comments
 (0)