Raised This Month: $ Target: $400
 0% 

UnixTime Problem with admin mysql


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
spamipolito
Junior Member
Join Date: Jun 2018
Old 06-27-2020 , 01:52   UnixTime Problem with admin mysql
Reply With Quote #1

Hi Guys. I have a problem with a new admin system.

I have these data:


admin_vencimiento = expiration date
admin_horavencimiento = expiration hour

Load data and convert with unixtime

PHP Code:
            new szDate[12], szDay[3], szMonth[3], szYear[5]

            
mysql_read_resultmysql_fieldnametonum"admin_vencimiento" ), szDate11 )
            
replace_all(szDatecharsmax(szDate), "/"" ")
            
parse(szDateszDay2szMonth2szYear4);


            new 
szHours[9], szHour[3], szMinute[3], szSecond[3]

            
mysql_read_resultmysql_fieldnametonum"admin_horavencimiento" ), szHours)
            
replace_all(szHourscharsmax(szHours), ":"" ")
            
parse(szHoursszHour2szMinute2szSecond2);

            
server_print("Admin Expiration Date Convert: %d"TimeToUnix(str_to_num(szYear), str_to_num(szMonth), str_to_num(szDay), str_to_num(szHour), str_to_num(szMinute), 0UT_TIMEZONE_SERVER)) 
Printing timestamp with console server:

Admin Expiration Date Convert: 1595691840

Convert timestamp (1595691840) with page:


This is real expiration hour:


Sorry for my bad english, i am from argentina

Last edited by spamipolito; 06-27-2020 at 01:54.
spamipolito is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode