print current system time, the result run on sikuli is different from python

Asked by Cui

run the same code on python and sikuli, the code as follows:

import time
print time.strftime( '%Y-%m-%d %H:%M:%S', time.localtime() )

the sikuli result:
2016-05-11 07:06:41

the python result:
2016-05-11 19:36:37

the python result is correct, Im so confused ,thanks to answer this question

best regards!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

what version of Sikuli?

Apparently a Jython problem.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

works for me with SikuliX 1.1.x (Jython 2.7)

Revision history for this message
Cui (244483314-v) said :
#3

 i installed sikuli-x-1.0rc3(r905)-win32.exe version

Revision history for this message
Best RaiMan (raimund-hocke) said :
#4

ok, then you should upgrade (what you use contains an obsolete Jython 2.5x)
http://sikulix.com

Revision history for this message
Cui (244483314-v) said :
#5

thanks a lot, let me try 。 Sikuli is very useful,thanks for your great work

Revision history for this message
Cui (244483314-v) said :
#6

Thanks RaiMan, that solved my question.

Revision history for this message
Cui (244483314-v) said :
#7

but i am still confused that , the same old version sikuli-x-1.0rc3(r905)-win32.exe version, it works for another colleague, but on my computer,it works wrong, now ,i upgrade Sikuli version, it works ok