cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 土卜皿 <pengcz.n...@gmail.com>
Subject How to make the result of select dateof(now) from system.local be equal to date command ?
Date Thu, 07 Jan 2016 07:58:09 GMT
Hi, all

When I run the command date:

[root@localhost ~]# date
Thu Jan  7 15:47:32 CST 2016

But under cqlsh, I got a different time:

[root@localhost ~]# cqlsh -u admin -p admin4587 172.21.0.131
Connected to Cassandra Center at 172.21.0.131:9042.
[cqlsh 5.0.1 | Cassandra 2.1.11 | CQL spec 3.2.1 | Native protocol v3]
Use HELP for help.
admin@cqlsh> select dateof(now()) from system.local;

dateof(now())
--------------------------
2016-01-07 07:47:32+0000

(1 rows)

What should I do for getting the same time 15:47:32 other than 07:47:32?


Dillon Peng

Mime
View raw message