UK Date Format with Timestamps

A place for users and developers of the Xataface to discuss and receive support.

UK Date Format with Timestamps

Postby ngms27 » Thu Jan 03, 2013 6:12 am

I'm using the timestamp option in several databases which is fine for the backend data.
However I'm in the UK as as always Xataface defaults to the US date/time format.

How can I switch my timestamp fields to display UK date and time such as dd/mm/yyyy hh:mm:ss

Would a change affect filtering and sorting?
ngms27
 
Posts: 30
Joined: Mon Nov 12, 2012 8:18 am

Re: UK Date Format with Timestamps

Postby wqeqwe » Mon Jan 07, 2013 10:30 pm

vxcvxcd
wqeqwe
 
Posts: 1
Joined: Mon Jan 07, 2013 10:28 pm

Re: UK Date Format with Timestamps

Postby ngms27 » Tue Jan 08, 2013 8:26 am

I managed to fix this using:

<?php
class tables_projects {
function lastmodified__display(&$record){
return date('d/m/Y H:i:s', strtotime($record->strval('lastmodified')));
}
}
?>
ngms27
 
Posts: 30
Joined: Mon Nov 12, 2012 8:18 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 21 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved