}
public static String getSendDate(Message msg, Locale loc) {
for (Iterator iter = msg.getExtensions().iterator(); iter.hasNext();) {
PacketExtension extension = (PacketExtension) iter.next();
if (extension.getNamespace().equals("jabber:x:delay")) {
DelayInformation delayInfo = (DelayInformation) extension;
Date date = delayInfo.getStamp();
// why does formatter with this method return a time in the afternoon
// like 03:24 instead of 15:24 like formatTime does??
return Formatter.getInstance(loc).formatDateAndTime(date);