Fixed truncation of date&time in header view
This commit is contained in:
parent
8be23dd403
commit
bd659093bf
@ -220,7 +220,7 @@ void GMsgHeaderView::Paint() {
|
|||||||
|
|
||||||
if(datewidth > 0) {
|
if(datewidth > 0) {
|
||||||
if(msg->written)
|
if(msg->written)
|
||||||
strftimei(buf, datewidth, LNG->DateTimeFmt, ggmtime(&msg->written));
|
strftimei(buf, datewidth+1, LNG->DateTimeFmt, ggmtime(&msg->written));
|
||||||
else
|
else
|
||||||
*buf = NUL;
|
*buf = NUL;
|
||||||
strsetsz(buf, datewidth);
|
strsetsz(buf, datewidth);
|
||||||
@ -264,7 +264,7 @@ void GMsgHeaderView::Paint() {
|
|||||||
|
|
||||||
if(datewidth > 0) {
|
if(datewidth > 0) {
|
||||||
if(msg->arrived)
|
if(msg->arrived)
|
||||||
strftimei(buf, datewidth, LNG->DateTimeFmt, ggmtime(&msg->arrived));
|
strftimei(buf, datewidth+1, LNG->DateTimeFmt, ggmtime(&msg->arrived));
|
||||||
else
|
else
|
||||||
*buf = NUL;
|
*buf = NUL;
|
||||||
strsetsz(buf, datewidth);
|
strsetsz(buf, datewidth);
|
||||||
|
Reference in New Issue
Block a user