You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
When using DateTime.now, does the "now" method return the time based on the remote OS system time or the local time where the user actually invoked the "now" method, if they are using ssh and running the commands in a rails console, for example?
Colin Law
unread,
Sep 15, 2013, 11:43:16 AM9/15/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
It returns the time on the machine that is running the code, so if
they ssh into a machine to run it then it is the time on the machine
ssh'ed into. How could it be otherwise? The machine ssh'ed into does
not know anything about the client machine's time settings.