..:D&G:.. Posted March 28, 2016 Share Posted March 28, 2016 So I use this getRealTime function to get the date and time when the player logs in, but it returns some weird date: 28-2-116 21:21:14 I don't think this is the time of the host, but I am not sure. function getTheTime() local timeDate = getRealTime() local year = timeDate.year local month = timeDate.month local monthday = timeDate.monthday local hour = timeDate.hour local minute = timeDate.minute local second = timeDate.second return monthday.."-"..month.."-"..year.." "..hour..":"..minute..":"..second end Any ideas? Thanks. Link to comment
Walid Posted March 28, 2016 Share Posted March 28, 2016 try this local year = timeDate.year + 1900 local month = timeDate.month + 1 Link to comment
..:D&G:.. Posted March 29, 2016 Author Share Posted March 29, 2016 Works perfectly now, thanks Link to comment
Walid Posted March 29, 2016 Share Posted March 29, 2016 [quote name=..&G:..]Works perfectly now, thanks You are welcome Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now