mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +01: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:
@@ -37,9 +37,10 @@
|
||||
#include <sys/timex.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <rddb.h>
|
||||
#include <rdconf.h>
|
||||
#include <rdescape_string.h>
|
||||
#include "rddb.h"
|
||||
#include "rdconf.h"
|
||||
#include "rddatetime.h"
|
||||
#include "rdescape_string.h"
|
||||
|
||||
#define BUFFER_SIZE 1024
|
||||
|
||||
@@ -982,7 +983,7 @@ QTime RDUtcToLocal(const QTime &gmttime)
|
||||
return gmttime.addSecs(-RDTimeZoneOffset());
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
int RDTimeZoneOffset()
|
||||
{
|
||||
time_t t=time(&t);
|
||||
@@ -1001,7 +1002,7 @@ int RDTimeZoneOffset()
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
QColor RDGetTextColor(const QColor &background_color)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user