1
Cuidiu
user_reg date
  • 2006/5/15 21:51

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Would someone please tell me how I can modify the user registration date for users in phpMyAdmin (unless there's a better place)? I'll be adding users and this field will need to be modified as they were members long before being added to the XOOPS database for this organization. I do not understand the date timestamp format unixtime (int(10)) when I examine the record. I just want to know how modify "Member since" date to 12/01/1989 (doesn't have to be that format - can be Dec. 1, 1989) or similar. Would someone help?

Thanks.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]

2
Dave_L
Re: user_reg date
  • 2006/5/16 0:04

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


If your version of phpMyAdmin has UNIX_TIMESTAMP in the Function dropdown on the edit page, select that function and enter the value "1989-12-01 12:00:00".

You could also use the query (XOOPS 2.2.x):

UPDATE xxxx_user_profile SET user_regdate = UNIX_TIMESTAMP("1989-12-01 12:00:00") WHERE profileid = yyyy

where xxxx is your table prefix and yyyy is the ID of the user you're changing.

I recommend backing up the database first.

3
Cuidiu
Re: user_reg date
  • 2006/5/16 0:29

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Worked like a charm. Thank you.

Quote:

Dave_L wrote:
If your version of phpMyAdmin has UNIX_TIMESTAMP in the Function dropdown on the edit page, select that function and enter the value "1989-12-01 12:00:00".

You could also use the query (XOOPS 2.2.x):

UPDATE xxxx_user_profile SET user_regdate = UNIX_TIMESTAMP("1989-12-01 12:00:00") WHERE profileid = yyyy

where xxxx is your table prefix and yyyy is the ID of the user you're changing.

I recommend backing up the database first.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]

Login

Who's Online

342 user(s) are online (269 user(s) are browsing Support Forums)


Members: 0


Guests: 342


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits