Switch to unified view

a/src/qtgui/restable.cpp b/src/qtgui/restable.cpp
...
...
182
{
182
{
183
    char datebuf[100];
183
    char datebuf[100];
184
    datebuf[0] = 0;
184
    datebuf[0] = 0;
185
    if (!doc.dmtime.empty() || !doc.fmtime.empty()) {
185
    if (!doc.dmtime.empty() || !doc.fmtime.empty()) {
186
    time_t mtime = doc.dmtime.empty() ?
186
    time_t mtime = doc.dmtime.empty() ?
187
        atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str());
187
        atoll(doc.fmtime.c_str()) : atoll(doc.dmtime.c_str());
188
    struct tm *tm = localtime(&mtime);
188
    struct tm *tm = localtime(&mtime);
189
    strftime(datebuf, 99, "%Y-%m-%d", tm);
189
    strftime(datebuf, 99, "%Y-%m-%d", tm);
190
    }
190
    }
191
    return datebuf;
191
    return datebuf;
192
}
192
}
...
...
195
{
195
{
196
    char datebuf[100];
196
    char datebuf[100];
197
    datebuf[0] = 0;
197
    datebuf[0] = 0;
198
    if (!doc.dmtime.empty() || !doc.fmtime.empty()) {
198
    if (!doc.dmtime.empty() || !doc.fmtime.empty()) {
199
    time_t mtime = doc.dmtime.empty() ?
199
    time_t mtime = doc.dmtime.empty() ?
200
        atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str());
200
        atoll(doc.fmtime.c_str()) : atoll(doc.dmtime.c_str());
201
    struct tm *tm = localtime(&mtime);
201
    struct tm *tm = localtime(&mtime);
202
    strftime(datebuf, 99, "%Y-%m-%d %H:%M:%S %z", tm);
202
    strftime(datebuf, 99, "%Y-%m-%d %H:%M:%S %z", tm);
203
    }
203
    }
204
    return datebuf;
204
    return datebuf;
205
}
205
}