MeasureTheFuture / mothership

Data collection and reporting software for Measure the Future motherships.
GNU General Public License v3.0
4 stars 1 forks source link

Timestamp for interactions #7

Open griffey opened 8 years ago

griffey commented 8 years ago

Mothership.log interactions are timestamped several hours off. Just checked the current log, local time is 9.11.16 09:44am and logs report

2016/09/11 14:44:44 INFO: Generating summary of interaction data.

So we're looking at a delta of +5 hours. Not sure where in process time is set, need to check how that's done and saved.

cfreeman commented 8 years ago

Default timezone for the Intel Edison is UTC, looks like the time is correct (Tennessee is UTC-05:00), but without timezone information.

To set your Edison to the local-time:

    rm /etc/localtime
    ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
   (Restart mothership and scout)

Please note, this will pretty much only change timestamps in the logs. All timestamps stored within the database will be in UTC regardless of the above timezone setting. Eventually when timestamps are shown in the UI, these will be automatically converted to the local timezone on the fly (timezone data will come from the browser).

At this stage I don't think I'm going to make any changes to the installer or code. Maybe some documentation like the above for those who really want the Edison set to their local timezone?