* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include "eventstringifier.h"
***************************************************************************/
#include "eventstringifier.h"
.arg(e->nick(), e->params().at(0), e->params().at(1)), QString(), e->params().at(0));
}
.arg(e->nick(), e->params().at(0), e->params().at(1)), QString(), e->params().at(0));
}
if (e->params().count() > 3) { // if we have more then 3 params we have the above mentioned "real life" situation
QDateTime loginTime = QDateTime::fromTime_t(e->params()[2].toInt());
if (e->params().count() > 3) { // if we have more then 3 params we have the above mentioned "real life" situation
QDateTime loginTime = QDateTime::fromTime_t(e->params()[2].toInt());
- displayMsg(e, Message::Server, tr("[Whois] %1 is logged in since %2").arg(e->params()[0], loginTime.toString()));
+ displayMsg(e, Message::Server, tr("[Whois] %1 is logged in since %2")
+ .arg(e->params()[0], QLocale().toString(loginTime, QLocale().dateTimeFormat())));
- .arg(e->params()[0], secondsToString(idleSecs), e->timestamp().toLocalTime().addSecs(-idleSecs).toString()));
+ .arg(e->params()[0], secondsToString(idleSecs),
+ QLocale().toString(idlingSince, QLocale().dateTimeFormat())));
- displayMsg(e, Message::Topic, tr("Channel %1 created on %2").arg(channel, time.toString()), QString(), channel);
+ displayMsg(e, Message::Topic, tr("Channel %1 created on %2")
+ .arg(channel, QLocale().toString(time, QLocale().dateTimeFormat())),
+ QString(), channel);
- .arg(e->params()[1], QDateTime::fromTime_t(e->params()[2].toInt()).toString()), QString(), channel);
+ .arg(e->params()[1],
+ QLocale().toString(topicSetTime, QLocale().dateTimeFormat())), QString(), channel);