Return-Path: X-Original-To: apmail-incubator-openmeetings-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-openmeetings-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED9ED9E95 for ; Tue, 17 Apr 2012 07:45:29 +0000 (UTC) Received: (qmail 61423 invoked by uid 500); 17 Apr 2012 07:45:29 -0000 Delivered-To: apmail-incubator-openmeetings-dev-archive@incubator.apache.org Received: (qmail 61363 invoked by uid 500); 17 Apr 2012 07:45:29 -0000 Mailing-List: contact openmeetings-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: openmeetings-dev@incubator.apache.org Delivered-To: mailing list openmeetings-dev@incubator.apache.org Received: (qmail 61347 invoked by uid 99); 17 Apr 2012 07:45:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2012 07:45:29 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of seba.wagner@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-wg0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2012 07:45:23 +0000 Received: by wgbdr12 with SMTP id dr12so4954959wgb.0 for ; Tue, 17 Apr 2012 00:45:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=dcL62RjxEDrPd4KbuWsgFwTOHG4hUSSZrqi05dNQvjA=; b=QbOPb29RFcb2aUGaF71jDYDm7l2WdRQ3g2A/SYwUxM+2sL+Z8BbwvEznVTGpTAHf9E zszTIGHneUNR2Z0MPmrtrsgrjx0ysK70PCIfcvxSI45Xzs43sPFWFZEs2DowgKEfWP6/ weLb412kZ3/GmETO0sWks3wFDRQlaBkLxKlv72S0dh43HNp8GhYQhLt8NtmlajIV/Ok9 iTJhUn18RB2LtIj5Vtm5LZ9PmSaVupWT6BfhwtfLrdU4uOUPkIVedxRsBkZTlj15XQmz 6QqYIEpS+bf+PfdR2+fUn6EYGVYjIY4dWnqdw16D7UYdYTo6SI/VbGVwc7eZBkApDw2V xSEA== Received: by 10.180.95.37 with SMTP id dh5mr4544321wib.8.1334648701771; Tue, 17 Apr 2012 00:45:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.191.205 with HTTP; Tue, 17 Apr 2012 00:44:41 -0700 (PDT) In-Reply-To: References: <4F8C56A5.000019.05384@HAMDI> <4F8C719A.000034.05384@HAMDI> From: "seba.wagner@gmail.com" Date: Tue, 17 Apr 2012 09:44:41 +0200 Message-ID: Subject: =?ISO-8859-1?B?UmU6IFLpZi4gOiBSZTogVGltZXpvbmUgJiBUaW1lIHBiICE=?= To: openmeetings-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d04428874c4e11504bddb1d4a X-Virus-Checked: Checked by ClamAV on apache.org --f46d04428874c4e11504bddb1d4a Content-Type: text/plain; charset=ISO-8859-1 Just let me understand it first :) 2) default user TZ (GMT+7) (user level: admin) 3) another user TZ (GMT-4) (user level: user) => what is the timezone of the browser? I mean if you create a Date Object is JavaScript it always will have the timezone of the browser. There is also no chance of changing that as JavaScript Date has no timezone info ... same as java.util.Date. This could be a problem. Admin or user level has no influence from my point of view. Sebastian 2012/4/17 Maxim Solodovnik > OK > > Here are my steps: > 1) server TZ: MSK (GMT+3) > 2) default user TZ (GMT+7) (user level: admin) > 3) another user TZ (GMT-4) (user level: user) > > The issue is NOT reproducible for the default admin user > The issue is reproducible for "another user" > > The event created using both "New Event" button and click on the calendar > Default event time is not changed: (always set to be 14:00-15:00) > The time displayed after creation is 03:00 > > @Sebastian should I handle it? or you going to fix it yourself? > > On Tue, Apr 17, 2012 at 14:17, seba.wagner@gmail.com > wrote: > > > ok, > > > > let me describe you the current process: > > > > A client in timezone: Moscow (+0400) > > A server in timezone: Berlin (+0200) > > > > The client generates a JavaScript Date Object (always in the local > timezone > > of the User) > > 1) The client sends Date Object: 16:00:00 15.04.2012 MTC > > 2) Server will receive a java.util.Date in his local timezone: > > The server method "saveAppointment" receives a Date Object: 14:00:00 > > 15.04.2012 CEST > > > > 3) This time is stored in the database (databases have no timezone info, > > they only got timestamps, timestamps in database are alwas in the local > > timezone of the server and that way need no timezone info). > > 4) Time is retrieved from database, client requests the Calendar via the > > REST WebService, date/time is calculated in the users timezone > > > > Something at 2) seems to be wrong. The rest is fine. It is strange to me > as > > I have been successfully testing it. > > > > Sebastian > > > > 2012/4/17 Maxim Solodovnik > > > > > I'll try to debug, > > > > > > Irina seems to be able to reproduce it easily > > > > > > On Tue, Apr 17, 2012 at 13:03, Baskar Rajendran > > > wrote: > > > > > > > myne > > > > > > > > What timezone is your client machine? => IST gmt + 5.30 > > > > userprofile ==> IST gmt + 5.30 > > > > What timezone has the server machine? => Mon Apr 16 23:55:22 MDT 2012 > > > > What timezone is the default timezone specified in the OpenMeetings > > > server? > > > > =>Etc/GMT--7 > > > > What time is written in your db? => IST gmt + 5.30 > > > > > > > > -regards > > > > baskar > > > > > > > > What timezone is in the user-profile of your client machine? => GMT+0 > > > > What timezone has the server machine? => GMT+0 > > > > What timezone is the default timezone specified in the OpenMeetings > > > server? > > > > => GMT+0 > > > > What time is written in your db? => GMT+0 (because I commented all > > others > > > > timezones in the XML file and I set GMT+0 as default) > > > > > > > > > > > > > > > > Mon Apr 16 23:55:22 MDT 2012 > > > > > > > > > > > > On Tue, Apr 17, 2012 at 12:53 AM, Hamdi THABET < > > hamdi.thabet86@gmail.com > > > > >wrote: > > > > > > > > > What timezone is your client machine? => Win7 x64 - Waterfox x64 > > > > > What timezone is in the user-profile of your client machine? => > > GMT+0 > > > > > What timezone has the server machine? => GMT+0 > > > > > What timezone is the default timezone specified in the OpenMeetings > > > > > server? => GMT+0 > > > > > What time is written in your db? => GMT+0 (because I commented all > > > others > > > > > timezones in the XML file and I set GMT+0 as default) > > > > > > > > > > I'm in Tunisia, I normally I need the "GMT+1" which I tried before > > but > > > > > there was the same problem in calendar. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > WBR > > > Maxim aka solomax > > > > > > > > > > > -- > > Sebastian Wagner > > https://twitter.com/#!/dead_lock > > http://www.openmeetings.de > > http://www.webbase-design.de > > http://www.wagner-sebastian.com > > seba.wagner@gmail.com > > > > > > -- > WBR > Maxim aka solomax > -- Sebastian Wagner https://twitter.com/#!/dead_lock http://www.openmeetings.de http://www.webbase-design.de http://www.wagner-sebastian.com seba.wagner@gmail.com --f46d04428874c4e11504bddb1d4a--