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 -- Posted via http://www.ruby-forum.com/.
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 MohammadTime.now is local user time correct? -- Posted via http://www.ruby-forum.com/.
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 MohammadMySQL 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. -- Posted via http://www.ruby-forum.com/.