|
a/src/qtgui/restable.cpp |
|
b/src/qtgui/restable.cpp |
|
... |
|
... |
170 |
datebuf[0] = 0;
|
170 |
datebuf[0] = 0;
|
171 |
if (!doc.dmtime.empty() || !doc.fmtime.empty()) {
|
171 |
if (!doc.dmtime.empty() || !doc.fmtime.empty()) {
|
172 |
time_t mtime = doc.dmtime.empty() ?
|
172 |
time_t mtime = doc.dmtime.empty() ?
|
173 |
atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str());
|
173 |
atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str());
|
174 |
struct tm *tm = localtime(&mtime);
|
174 |
struct tm *tm = localtime(&mtime);
|
175 |
#ifndef sun
|
|
|
176 |
strftime(datebuf, 99, "%Y-%m-%d", tm);
|
175 |
strftime(datebuf, 99, "%Y-%m-%d", tm);
|
177 |
#else
|
|
|
178 |
strftime(datebuf, 99, "%x", tm);
|
|
|
179 |
#endif
|
|
|
180 |
}
|
176 |
}
|
181 |
return datebuf;
|
177 |
return datebuf;
|
182 |
}
|
178 |
}
|
183 |
|
179 |
|
184 |
static string datetimegetter(const string&, const Rcl::Doc& doc)
|
180 |
static string datetimegetter(const string&, const Rcl::Doc& doc)
|
|
... |
|
... |
187 |
datebuf[0] = 0;
|
183 |
datebuf[0] = 0;
|
188 |
if (!doc.dmtime.empty() || !doc.fmtime.empty()) {
|
184 |
if (!doc.dmtime.empty() || !doc.fmtime.empty()) {
|
189 |
time_t mtime = doc.dmtime.empty() ?
|
185 |
time_t mtime = doc.dmtime.empty() ?
|
190 |
atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str());
|
186 |
atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str());
|
191 |
struct tm *tm = localtime(&mtime);
|
187 |
struct tm *tm = localtime(&mtime);
|
192 |
#ifndef sun
|
|
|
193 |
strftime(datebuf, 99, "%Y-%m-%d %H:%M:%S %z", tm);
|
188 |
strftime(datebuf, 99, "%Y-%m-%d %H:%M:%S %z", tm);
|
194 |
#else
|
|
|
195 |
strftime(datebuf, 99, "%c", tm);
|
|
|
196 |
#endif
|
|
|
197 |
}
|
189 |
}
|
198 |
return datebuf;
|
190 |
return datebuf;
|
199 |
}
|
191 |
}
|
200 |
|
192 |
|
201 |
// Static map to translate from internal column names to displayable ones
|
193 |
// Static map to translate from internal column names to displayable ones
|