Server time

Hello I just set up my db to save Time(now)(IN SQL not ruby’s Time.now)
But, this is local user time correct? If not or even so I would also
like to be able to call servers Time.now in my app so how can I do this?

Thanks in advance,
noobie Mohammad

Mohammad wrote:

Hello I just set up my db to save Time(now)(IN SQL not ruby’s Time.now)
But, this is local user time correct? If not or even so I would also
like to be able to call servers Time.now in my app so how can I do this?

Thanks in advance,
noobie Mohammad

Time.now is local user time correct?

Mohammad wrote:

Hello I just set up my db to save Time(now)(IN SQL not ruby’s Time.now)
But, this is local user time correct? If not or even so I would also
like to be able to call servers Time.now in my app so how can I do this?

Thanks in advance,
noobie Mohammad

MySQL has no idea what local user time even means. If you setup a time
default in the DB it will always be Server time. And Time.now is also
always server time.

You cant really get the local user time in ruby code without some
special handling and collecting of the users timezone.