Commit 0379a98db93c03c8f3f7efcc7770975eb8c74553
1 parent
44e7c20e
Fix daemon (now writes creation date in new XML)
Showing
1 changed file
with
5 additions
and
1 deletions
src/support/GDaemon.cpp
| ... | ... | @@ -562,6 +562,10 @@ void GDaemon::update_xml(const GCsv& statistics) |
| 562 | 562 | ***************************************************************************/ |
| 563 | 563 | void GDaemon::create_xml(const GFilename& filename) |
| 564 | 564 | { |
| 565 | + // Set current time | |
| 566 | + GTime now; | |
| 567 | + now.now(); | |
| 568 | + | |
| 565 | 569 | // Initialise high-level statistics XML object |
| 566 | 570 | GXml xml; |
| 567 | 571 | |
| ... | ... | @@ -573,7 +577,7 @@ void GDaemon::create_xml(const GFilename& filename) |
| 573 | 577 | GXmlNode* dates = header->append("dates"); |
| 574 | 578 | GXmlNode* countries = header->append("countries"); |
| 575 | 579 | GXmlNode* d1 = dates->append("creation"); |
| 576 | - d1->append(GXmlText("")); | |
| 580 | + d1->append(GXmlText(GXmlText(now.utc()))); | |
| 577 | 581 | GXmlNode* d2 = dates->append("modified"); |
| 578 | 582 | d2->append(GXmlText("")); |
| 579 | 583 | GXmlNode* d3 = dates->append("start"); | ... | ... |