|
a/src/internfile/myhtmlparse.cpp |
|
b/src/internfile/myhtmlparse.cpp |
|
... |
|
... |
359 |
// FIXME
|
359 |
// FIXME
|
360 |
string tmp = i->second;
|
360 |
string tmp = i->second;
|
361 |
decode_entities(tmp);
|
361 |
decode_entities(tmp);
|
362 |
struct tm tm;
|
362 |
struct tm tm;
|
363 |
if (strptime(tmp.c_str(),
|
363 |
if (strptime(tmp.c_str(),
|
364 |
" %Y-%m-%d %H:%M:%S ", &tm)) {
|
364 |
" %Y-%m-%d %H:%M:%S ", &tm) ||
|
|
|
365 |
strptime(tmp.c_str(),
|
|
|
366 |
"%Y-%m-%dT%H:%M:%S", &tm)
|
|
|
367 |
) {
|
365 |
char ascuxtime[100];
|
368 |
char ascuxtime[100];
|
366 |
sprintf(ascuxtime, "%ld", (long)mktime(&tm));
|
369 |
sprintf(ascuxtime, "%ld", (long)mktime(&tm));
|
367 |
dmtime = ascuxtime;
|
370 |
dmtime = ascuxtime;
|
368 |
}
|
371 |
}
|
369 |
} else if (name == "robots") {
|
372 |
} else if (name == "robots") {
|