diff --git a/server/lib/pbench/__init__.py b/server/lib/pbench/__init__.py index 71a94c7b8e..25c48e4a32 100644 --- a/server/lib/pbench/__init__.py +++ b/server/lib/pbench/__init__.py @@ -244,10 +244,14 @@ def get(self, *args, **kwargs): return self.conf.get(*args, **kwargs) def timestamp(self): + """ + "Return timestamp formatted as a string of the following form: + --
T::- + """ if self._unittests: ts = "1900-01-01T00:00:00-UTC" else: - ts = datetime.utcnow().isoformat() + ts = tstos() return ts