Skip to content

Commit

Permalink
Adjust for time zone
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarian2 committed Jan 9, 2024
1 parent e410e16 commit a6f1ff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/com/mimecast/robin/util/MagicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ void magicReplace() {
assertEquals("example.com", Magic.magicReplace("{$host[0][com]}", session, false));

session.putMagic("date", "20240109000000000");
assertEquals("1704754800000", Magic.magicReplace("{dateToMillis$date}", session, false));
assertEquals("1704758400000", Magic.magicReplace("{dateToMillis$date}", session, false));

session.putMagic("milis", "1704754800000");
session.putMagic("milis", "1704758400000");
assertEquals("20240109000000000", Magic.magicReplace("{millisToDate$milis}", session, false));

session.putMagic("upper", "ABC");
Expand Down

0 comments on commit a6f1ff3

Please sign in to comment.