Commit 34c66236ac15dd8f5e5a1db1963fd21d618412b0

Authored by Elena.Budnik
1 parent 469237a5

sec in strat-stop

Showing 1 changed file with 5 additions and 5 deletions   Show diff stats
php/classes/FilesMgr.php
... ... @@ -543,7 +543,7 @@ class FilesMgr extends AmdaObjectMgr {
543 543 if ((strncmp($this->fileId, "impex___", 8) == 0) || (strncmp($this->fileId, "spase___", 8) == 0))
544 544 $newFile->setAttribute('mask', $this->getGenericMask());
545 545  
546   - $newFile->nodeValue = date('Y-m-d',$start)."T".date('H:i',$start)."-".date('Y-m-d',$stop)."T".date('H:i',$stop);
  546 + $newFile->nodeValue = date('Y-m-d',$start)."T".date('H:i:s',$start)."-".date('Y-m-d',$stop)."T".date('H:i:s',$stop);
547 547 if ($desc != '')
548 548 $newFile->nodeValue .= (PHP_EOL.$desc);
549 549 return $newFile;
... ... @@ -552,7 +552,7 @@ class FilesMgr extends AmdaObjectMgr {
552 552  
553 553 protected function createFile($format) {
554 554  
555   - $newFile = $this->contentDom->createElement('file');
  555 + $newFile = $this->contentDom->createElement('file');
556 556 $newFile->setAttribute('xml:id', $this->fileId);
557 557 $newFile->setAttribute('name', $this->fileId);
558 558 $newFile->setAttribute('format', $format);
... ... @@ -633,7 +633,7 @@ class FilesMgr extends AmdaObjectMgr {
633 633 else
634 634 $newFile->setAttribute('mask', $this->fileId);
635 635  
636   - $newFile->nodeValue = date('Y-m-d',$start)."T".date('H:i',$start)."-".date('Y-m-d',$stop)."T".date('H:i',$stop);
  636 + $newFile->nodeValue = date('Y-m-d',$start)."T".date('H:i:s',$start)."-".date('Y-m-d',$stop)."T".date('H:i:s',$stop);
637 637 if ($desc != '')
638 638 $newFile->nodeValue .= (PHP_EOL.$desc);
639 639  
... ... @@ -993,7 +993,7 @@ class FilesMgr extends AmdaObjectMgr {
993 993 $stops[] = $file->getAttribute("stop");
994 994 }
995 995  
996   - $newMask->setAttribute('info',date('Y-m-d',min($starts))."T".date('H:i',min($starts))."-".date('Y-m-d',max($stops))."T".date('H:i',max($stops)));
  996 + $newMask->setAttribute('info',date('Y-m-d',min($starts))."T".date('H:i:s',min($starts))."-".date('Y-m-d',max($stops))."T".date('H:i:s',max($stops)));
997 997  
998 998 $fileList = $this->contentDom->getElementById($this->contentRootId);
999 999  
... ... @@ -1199,7 +1199,7 @@ class FilesMgr extends AmdaObjectMgr {
1199 1199 $starts[] = $file->getAttribute("start");
1200 1200 $stops[] = $file->getAttribute("stop");
1201 1201 }
1202   - $mask->setAttribute("info", date('Y-m-d',min($starts))."T".date('H:i',min($starts))."-".date('Y-m-d',max($stops))."T".date('H:i',max($stops)));
  1202 + $mask->setAttribute("info", date('Y-m-d',min($starts))."T".date('H:i:s',min($starts))."-".date('Y-m-d',max($stops))."T".date('H:i:s',max($stops)));
1203 1203  
1204 1204 $isMask = true;
1205 1205 break;
... ...