Jump to content



Latest News: (loading..)

- - - - -

Customer logon date


  • Please log in to reply
5 replies to this topic

#1   al3ks

al3ks
  • Members
  • 288 posts
  • Real Name:Aleksander
  • Gender:Male
  • Location:UK

Posted 30 July 2012 - 08:28 PM

Hi

Is it possible to change the date format for customer last logon, so that it shows full date with accurate time?

For example instead of:
30/07/2012

To show like this:
30/07/2012, 21:28:45
Find this post helpful? Click the 'Like this' button. :)

#2   DunWeb

DunWeb

    The Censored One

  • Members
  • 12,723 posts
  • Real Name:Chris
  • Gender:Male
  • Location:Ontario, Canada

Posted 30 July 2012 - 08:53 PM

@al3ks

Which customer listing did you want to change ?  Who's Online ?  Customers ? Dashboard ?



Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile (click here)

#3   al3ks

al3ks
  • Members
  • 288 posts
  • Real Name:Aleksander
  • Gender:Male
  • Location:UK

Posted 30 July 2012 - 09:27 PM

@DunWeb

The customers area with list of all registered accounts.
Find this post helpful? Click the 'Like this' button. :)

#4   EchoGuns

EchoGuns

    Supreme Overlord

  • Members
  • 122 posts
  • Real Name:Clint Freeman
  • Gender:Male
  • Location:Texas

Posted 30 July 2012 - 10:13 PM

Be nice to go a step further, have a new column added so that along side their last name, first name, and date the account created, you would have the last logon date (and time) and be able to sort through them that way.
My Addons:

Product Tabs - 2.3x Download| Support
Product Info Page Box - 2.3x Download | Support

#5   germ

germ
  • Members
  • 13,921 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 31 July 2012 - 12:01 AM

View Postal3ks, on 30 July 2012 - 09:27 PM, said:

@DunWeb

The customers area with list of all registered accounts.

/admin/customers.php

Find:


		$contents[] = array('text' => '<br />' . TEXT_INFO_DATE_LAST_LOGON . ' '  . tep_date_short($cInfo->date_last_logon));


Change to


		$contents[] = array('text' => '<br />' . TEXT_INFO_DATE_LAST_LOGON . ' '  . date("d/m/Y G:i:s", strtotime( $cInfo->date_last_logon ) ));


Sorry for the way the forum mucks it up...

Edited by germ, 31 July 2012 - 12:02 AM.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#6   al3ks

al3ks
  • Members
  • 288 posts
  • Real Name:Aleksander
  • Gender:Male
  • Location:UK

Posted 31 July 2012 - 01:43 AM

@germ Thanks that works great.
Find this post helpful? Click the 'Like this' button. :)