I was working on a functionality where we had to fetch list items from server using ECMA script (SharePoint 2010 Client Object Model) based on current datetime. The problem is that the datetime we were using to filter was that of the client machine which was different from that of server; the reason being, the client and the server were located in different timezones.
Please help me to find a way to get sharepoint server time using Javascript ClientObjectModel. The other restriction we have is that, we are not allowed to do any server side coding.