SOLVED Accounts show setup date "2070-01-01 00:00"

wintech2003

Well-Known Member
PartnerNOC
Sep 15, 2010
103
28
78
Greece
cPanel Access Level
DataCenter Provider
After migrating some accounts from a Plesk server, few of those cPanel accounts were created with setup date "2070-01-01 00:00"
Code:
# cat /var/cpanel/users/[username] | grep -i startdate
STARTDATE=3155760000
Any idea why that might have happened and how I can change the date there?
 

wintech2003

Well-Known Member
PartnerNOC
Sep 15, 2010
103
28
78
Greece
cPanel Access Level
DataCenter Provider
The weird thing is that I see no transfer logs under "Home » Transfers » Review Transfers and Restores" in order to investigate further.
The migrations happened on the 22nd of July 2020 (I can confirm this from the cPanel access logs), are they purged after a certain amount of days?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,441
1,004
313
cPanel Access Level
Root Administrator
Hey there! The only thing I can think of would be that there was an issue with the date on the machine at the time the accounts were transferred as it would just be using the server time to create that timestamp.

Using "1595390400" would be midnight on July 22 2020, in the Eastern US time zone. There's a tool at Epoch Converter so you can create your own if you need to tweak that.

The transfer logs do get rotated after 30 days according to our documentation here:


"The /usr/local/cpanel/scripts/expunge_expired_transfer_sessions script removes session logs after 30 days. It runs during nightly maintenance."
 

wintech2003

Well-Known Member
PartnerNOC
Sep 15, 2010
103
28
78
Greece
cPanel Access Level
DataCenter Provider
Fantastic, thanks - that explains everything indeed. Is it enough to change the value of STARTDATE in /var/cpanel/users/[username] or is it referenced somewhere else too?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,441
1,004
313
cPanel Access Level
Root Administrator
As far as I know, that's the only spot that gets referenced, but I can't say I've gone hacking away at the account creation dates too much :D

Just for fun, I used your value of 3155760000 and WHM >> List Accounts was instantly changed to "2069-12-31 19:00" so that would confirm that is the only place being read.