Jump to content

Timezone FormatDate


WhoAmI

Recommended Posts

Posted

It is just detected from the server / client machine it was run from. if you use a client-side code, you'll be fine. it'll show the player its correct time.

Posted

I mean minutes. Don't talk to me like to amateur. In both pictures time stamp is the same but I'm getting different values after converting to date.

Posted

Made my own function and works now.

function formatDate ( timestamp ) 
    if ( tonumber ( timestamp ) ) then 
        local time = getRealTime ( timestamp ) 
        return string.format ( "%02d.%02d.%02d %02d:%02d", time.monthday, time.month + 1, time.year + 1900, time.hour, time.minute ) 
    end 
end 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...