Index: trunk/MagicSoft/Cosy/videodev/Writer.cc
===================================================================
--- trunk/MagicSoft/Cosy/videodev/Writer.cc	(revision 1816)
+++ trunk/MagicSoft/Cosy/videodev/Writer.cc	(revision 1953)
@@ -14,10 +14,14 @@
                  struct timeval *date)
 {
+    Timer t(date);
+    TString mjd;
+    mjd += t.GetMjd()-52000;
+    mjd = mjd.Strip(TString::kBoth);
+    if (mjd.Length()<10)
+        mjd.Append('0', 10-mjd.Length());
+
     TString name = fname;
-
-    Timer t(date);
-
     name += "_";
-    name += t.GetMjd()-52000;
+    name += mjd;
     name += ".png";
 
