mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 08:01:13 +02:00
2019-01-29 Fred Gleason <fredg@paravelsystems.com>
* Refactored routines for parsing/writing standard date/time strings (RFC822 and XML xs:dateTime formats) into 'lib/rddatetime.[cpp|h]. * Removed the 'RDWebDateTime()', 'RDGetWebDateTime()', 'RDGetWebDate()', 'RDGetWebTime()', 'RDGetWebMonth()', 'RDXmlDate()', 'RDXmlTime()', 'RDXmlDateTime()' and 'RDXmlTimeZoneSuffix()' functions from 'lib/rdweb.[cpp|h]. * Added a 'dateparse_test' test harness.
This commit is contained in:
@@ -23,6 +23,8 @@
|
||||
#include <rdapplication.h>
|
||||
#include <rdweb.h>
|
||||
|
||||
#include <rddatetime.h>
|
||||
|
||||
#include "rdclilogedit.h"
|
||||
|
||||
void MainObject::DispatchCommand(QString cmd)
|
||||
@@ -503,7 +505,7 @@ void MainObject::DispatchCommand(QString cmd)
|
||||
switch(ttype) {
|
||||
case RDLogLine::Hard:
|
||||
if(cmds.size()>=4) {
|
||||
time=RDGetWebTime(cmds[3],&ok);
|
||||
time=RDParseXmlTime(cmds[3],&ok);
|
||||
if(ok) {
|
||||
Settime(line,ttype,time);
|
||||
}
|
||||
|
Reference in New Issue
Block a user