I am using following code for getting current system time which needed to be passed to some sql queries

```
java.util.Date date = new java.util.Date();
long t = date.getTime();
java.sql.Timestamp sqlTimestamp = new java.sql.Timestamp(t);

log.info("Current Time:" + sqlTimestamp.toString());

```

Now i also needed to get UTC 0 time (not GMT 0)

log.info("Current Time:" + sqlTimestamp.toString());

**Current Time:2019-01-04 15:04:50.735**

I am trying following code but it looks like not getting date part correctly

```
 log.info("Current UTC Time:" + new java.sql.Timestamp(Instant.now().atOffset( ZoneOffset.UTC ).toEpochSecond()).toString());

```

**Current UTC Time:1970-01-19 02:36:36.299**

Please let me know what correction i needed