@@ -125,7 +125,9 @@ void CommunityFundDisplayPaymentRequestDetailed::setPrequestLabels() const
125125 std::string duration_title = " Accepted on: " ;
126126 std::time_t t = static_cast <time_t >(proptime);
127127 std::stringstream ss;
128- ss << std::put_time (std::gmtime (&t), " %c %Z" );
128+ char buf[24 ];
129+ if (strftime (buf, sizeof (buf), " %c %Z" , std::gmtime (&t)))
130+ ss << buf;
129131 ui->labelPrequestExpiryTitle ->setText (QString::fromStdString (duration_title));
130132 ui->labelPrequestExpiry ->setText (QString::fromStdString (ss.str ().erase (10 , 9 )));
131133 }
@@ -135,7 +137,9 @@ void CommunityFundDisplayPaymentRequestDetailed::setPrequestLabels() const
135137 std::string expiry_title = " Rejected on: " ;
136138 std::time_t t = static_cast <time_t >(proptime);
137139 std::stringstream ss;
138- ss << std::put_time (std::gmtime (&t), " %c %Z" );
140+ char buf[24 ];
141+ if (strftime (buf, sizeof (buf), " %c %Z" , std::gmtime (&t)))
142+ ss << buf;
139143 ui->labelPrequestExpiryTitle ->setText (QString::fromStdString (expiry_title));
140144 ui->labelPrequestExpiry ->setText (QString::fromStdString (ss.str ().erase (10 , 9 )));
141145 }
@@ -146,7 +150,9 @@ void CommunityFundDisplayPaymentRequestDetailed::setPrequestLabels() const
146150 std::string expiry_title = " Expired on: " ;
147151 std::time_t t = static_cast <time_t >(proptime);
148152 std::stringstream ss;
149- ss << std::put_time (std::gmtime (&t), " %c %Z" );
153+ char buf[24 ];
154+ if (strftime (buf, sizeof (buf), " %c %Z" , std::gmtime (&t)))
155+ ss << buf;
150156 ui->labelPrequestExpiryTitle ->setText (QString::fromStdString (expiry_title));
151157 ui->labelPrequestExpiry ->setText (QString::fromStdString (ss.str ().erase (10 , 9 )));
152158 }
0 commit comments