The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to Reset Account Setup Date

Discussion in 'General Discussion' started by Antonimo, Aug 22, 2007.

  1. Antonimo

    Antonimo Registered

    Joined:
    Apr 10, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I wish to reset the account set up date on several accounts.

    I cannot find the answer to this anywhere, so is it even possible? If so, how?

    Regards,
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    There is no means by which to change this via the WHM interface. However, there may be a way to do it manually with root shell access.
     
  3. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    You can edit the parameter value of STARTDATE in /var/cpanel/users/USERNAME to change the start date. I am not sure that how its value is composed, someone from cPanel staff or anyone who knows the format can describe its format.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Indeed. The format is: STARTDATE=1125594754 which translates to 05 Sep 01 10:12 in list accounts page.

    But would changing this there break anything else like stats or something? Not sure how much is relied on for this date if anything. This would be a good thing to know about for accounts transfered from other servers.
     
  5. gussy

    gussy Registered

    Joined:
    Jun 5, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Si lo que quieren es cambiar a la fecha actual a las 00:00 horas, ejecutan:

    date -d 'May 18 2010 00:00:00' +%s

    eso les da la fecha exacta en formato EPOC: 1274158800 y este valor es el que cambian en el parametero STARTDATE,

    Para hacer lo inverso, saber cual es la fecha exacta a partir de un EPOC, entonces ejecutan:

    date -d '1970-01-01 1274158800 sec'
     
Loading...

Share This Page