Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-8389

fix last_modified timestamp in desktop/models

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.9.0
    • Component/s: core.ui
    • Labels:
      None

      Description

      diff -r hue.orig/desktop/core/src/desktop/models.py hue/desktop/core/src/desktop/models.py
      1191,1192c1191,1192
      < 'last_modified': self.last_modified.strftime(UTC_TIME_FORMAT),
      < 'last_modified_ts': calendar.timegm(self.last_modified.utctimetuple()),

      > 'last_modified': self.last_modified.strftime(UTC_TIME_FORMAT) if self.last_modified else None,
      > 'last_modified_ts': calendar.timegm(self.last_modified.utctimetuple()) if self.last_modified else None,

        Attachments

          Activity

            People

            • Assignee:
              ranade Prakash
              Reporter:
              ranade Prakash
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: