From dev-return-41773-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Fri Nov 9 07:58:18 2012 Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14C12DF73 for ; Fri, 9 Nov 2012 07:58:18 +0000 (UTC) Received: (qmail 44926 invoked by uid 500); 9 Nov 2012 07:58:16 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 44632 invoked by uid 500); 9 Nov 2012 07:58:15 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 44519 invoked by uid 99); 9 Nov 2012 07:58:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2012 07:58:12 +0000 Date: Fri, 9 Nov 2012 07:58:12 +0000 (UTC) From: "Pierre-Arnaud Marcelot (JIRA)" To: dev@directory.apache.org Message-ID: <1814410166.90655.1352447892489.JavaMail.jiratomcat@arcas> In-Reply-To: <898535802.85353.1352348412361.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (DIRSTUDIO-845) "Friendly" time not displaying correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRSTUDIO-845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493806#comment-13493806 ] Pierre-Arnaud Marcelot commented on DIRSTUDIO-845: -------------------------------------------------- Hi Joel, Let's be clear. If the picture in your example has been taken on November 8th 14:42:05 in Australia, it's Generalized Time value *can't* be 20121108144205Z. It's not as simple as appending a 'Z' at the end of the time string. By doing so, it is locating this time in the UTC (GMT+0) timezone. The whole point of the decorated (friendly) value is to help the user deal with timezones conversion. That's why we get the timezone used on the local machine and convert the time to something relative to that. Can you confirm that the software you're using to insert the date in the directory server is actually taking the current time in the Australian timezone (using "DateTime.Now()" as you indicated) and appending a "Z" at the end of this value? If this is the case, the date isn't correct anymore unfortunately? > "Friendly" time not displaying correctly > ---------------------------------------- > > Key: DIRSTUDIO-845 > URL: https://issues.apache.org/jira/browse/DIRSTUDIO-845 > Project: Directory Studio > Issue Type: Bug > Components: studio-ldapbrowser > Affects Versions: 1.5.3, 2.0.0-M3 > Environment: WinXP SP2, Apache Directory Studio 1.5.3, 2.0 M3, multiple machines. > Reporter: Joel > Priority: Minor > > We have a piece of photocapture software that takes a photo and adds it to our eDirectory tree along with the date the photo was taken. The format it uses to store the date in is the following: 20121108144205Z (yyyyddmmhhmm??Z). Apache takes this date and converts it to a more user friendly version but this date is off by +11 hours as below. > 9/11/2012 1:42:05 (20121108144205Z) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira