Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-110779

system.info: boottime timestamp wrong

    XMLWordPrintable

    Details

      Description

        When running the "system.info" API call to the middleware, the timestamps within the return are not self-consistent:

      The "boottime" timestamp appears to be consistently about 7h off from the "uptime" or "uptime_seconds" fields if you calculate the datetime - boottime difference.

      {
      "version": "TrueNAS-12.0-U3.1", 
      "buildtime": {"$date": 1620062467000}, 
      "hostname": "hydra003.ds.ixsystems.net", 
      "physmem": 4238970880, 
      "model": "Intel(R) Atom(TM) CPU  C2750  @ 2.40GHz", 
      "cores": 2, 
      "loadavg": [0.39111328125, 0.53125, 0.40869140625], 
      "uptime": "6:10AM  up 10 mins, 1 user", 
      "uptime_seconds": 595.2389583587646, 
      "system_serial": "30e321b4-0032-840b-ca5f-feba7858b216",
      "system_product": "HVM domU", 
      "system_product_version": "4.13", 
      "license": null, 
      "boottime": {"$date": 1621922438000}, 
      "datetime": {"$date": 1621948233480}, 
      "birthday": {"$date": 1620249124772}, 
      "timezone": "America/Los_Angeles", 
      "system_manufacturer": "Xen", 
      "ecc_memory": true
      }

      datetime - boottime ~= 25795s (7.16h), not the 595s listed in the "uptime_seconds" field.

        Attachments

          Attachments

            JEditor

              Issue Links

                Activity

                  People

                  Assignee:
                  waqar Waqar Ahmed
                  Reporter:
                  ken Ken Moore
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved: