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 431A79F19 for ; Tue, 17 Apr 2012 07:47:18 +0000 (UTC) Received: (qmail 64519 invoked by uid 500); 17 Apr 2012 07:47:18 -0000 Delivered-To: apmail-incubator-openmeetings-dev-archive@incubator.apache.org Received: (qmail 64453 invoked by uid 500); 17 Apr 2012 07:47:17 -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 64440 invoked by uid 99); 17 Apr 2012 07:47:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2012 07:47:17 +0000 X-ASF-Spam-Status: No, hits=2.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of solomax666@gmail.com designates 209.85.215.47 as permitted sender) Received: from [209.85.215.47] (HELO mail-lpp01m010-f47.google.com) (209.85.215.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2012 07:47:09 +0000 Received: by lagw12 with SMTP id w12so4270452lag.6 for ; Tue, 17 Apr 2012 00:46:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=GNxp3NI+UuE0BoxWtnAxKQzO8nHOE5iW1qRvrW3GSqY=; b=o0Oeqsw8tr7UgCLKdWMXQ1M9u4LUrYcUwBQCIDOHf9HGc6CywZav/Tev8nDoqylXpP SDKDlkA2hXLqxFxCrbdYAupveQvagA+8lyvSnuIl2/1GZFijrm41v4V/7j3WrAW4vO+Q JIpGF1iMyvTcRd3kEm4EQ6SUj0OEAzXnDA8v3Reg9Cm0oYu7c2jv8CPQjqsODONgrbk2 I0o7qNZXQcFYyk58pAH3HtsrhhJM4ERpOB4es5eayaRkvJQ9i/oqThrCduO8cNJfnWkj /xnAO8FONe195bbQ51lo947V5yuxQBGLrUKEkKNsFvWqNR9/Tf96U+0avZ2ilXa9v5Ge 1s2w== MIME-Version: 1.0 Received: by 10.112.26.10 with SMTP id h10mr6470984lbg.79.1334648808899; Tue, 17 Apr 2012 00:46:48 -0700 (PDT) Received: by 10.112.107.71 with HTTP; Tue, 17 Apr 2012 00:46:48 -0700 (PDT) In-Reply-To: References: <4F8C56A5.000019.05384@HAMDI> <4F8C719A.000034.05384@HAMDI> Date: Tue, 17 Apr 2012 14:46:48 +0700 Message-ID: Subject: =?UTF-8?B?UmU6IFLDqWYuIDogUmU6IFRpbWV6b25lICYgVGltZSBwYiAh?= From: Maxim Solodovnik To: openmeetings-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=bcaec553ffc027834204bddb24f2 --bcaec553ffc027834204bddb24f2 Content-Type: text/plain; charset=UTF-8 client machine timezone is GMT+7 On Tue, Apr 17, 2012 at 14:44, seba.wagner@gmail.com wrote: > 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 > -- WBR Maxim aka solomax --bcaec553ffc027834204bddb24f2--