Element-0 / ElementZero

Run windows version of BDS in linux with Mod support
GNU General Public License v3.0
272 stars 51 forks source link

show the time #33

Closed otocin closed 4 years ago

otocin commented 4 years ago

Is there any way to show the time on the console? It is the basic function of BDS, but Element-0 does not show the time.

Also, the time in the log file does not match the time zone of my computer. How can I change the time zone?

codehz commented 4 years ago

(the log in database is using UTC, and can be convert to localtime by datetime(time, 'localtime')) And I will add back the time display in the next release

otocin commented 4 years ago

I'm really sorry, but how do I change from UTC to local time? I'm sorry I'm an layperson

codehz commented 4 years ago

@otocin It seems you're using some GUI program to browse database, so it won't be able to convert datetime automatically, but you can create a view for localtime Execute create view locallog as select session, datetime(time, 'localtime'), content from log; in that database, and browse the locallog in UI