mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
Merge branch 'android_branch' into android_bt
This commit is contained in:
commit
1892ccf640
1 changed files with 8 additions and 2 deletions
|
@ -84,6 +84,12 @@ function strip_quotes($str) {
|
|||
return trim( $str, '"');
|
||||
}
|
||||
|
||||
function print_date( $str ) {
|
||||
$str = strip_quotes( $str );
|
||||
$time = strtotime( $str );
|
||||
return strftime( "%x@%R", $time );
|
||||
}
|
||||
|
||||
$cols = array( new Column("dead", "D", "capitalize", false ),
|
||||
new Column("pub", "P", "capitalize", false ),
|
||||
new Column("room", "Room", "identity", false ),
|
||||
|
@ -94,8 +100,8 @@ $cols = array( new Column("dead", "D", "capitalize", false ),
|
|||
new Column("ack", "A", "identity", true ),
|
||||
new Column("nsent", "Sent", "identity", false ),
|
||||
new Column("addrs", "Dev. addr", "ip_to_host", true ),
|
||||
new Column("ctime", "Created", "strip_quotes", false ),
|
||||
new Column("mtimes", "Last contact", "strip_quotes", true ),
|
||||
new Column("ctime", "Created", "print_date", false ),
|
||||
new Column("mtimes", "Last contact", "print_date", true ),
|
||||
);
|
||||
|
||||
$colnames = array();
|
||||
|
|
Loading…
Add table
Reference in a new issue