Hi,

I just stumbled across the problem that osmocom_fft's default recording
filename does not contain the timezone.

I think it would be a good idea to change that, and I hope you agree :)

The change I propose is relatively simple:


diff --git a/apps/osmocom_fft b/apps/osmocom_fft
index c48ac7ee15..05a6de842c 100755
--- a/apps/osmocom_fft
+++ b/apps/osmocom_fft
@@ -326,7 +326,7 @@ class app_top_block(gr.top_block, Qt.QMainWindow):
         s = self._fre.text()
         s = s.replace('%S', '%e' % self.src.get_sample_rate())
         s = s.replace('%F', '%e' % self.src.get_center_freq())
-        s = s.replace('%T', datetime.datetime.now().strftime('%Y%m%d%H%M%S'))
+        s = s.replace('%T', 
datetime.datetime.now().astimezone().strftime('%Y%m%d%H%M%S%z'))
         return s
 
     def _set_status_msg(self, msg, timeout=0):




CU,
    Sec
-- 
"This 'telephone' has too many shortcomings to be seriously considered
as a means of communication. The device is inherently of no value to
us." -Western Union internal memo, 1876

Reply via email to