directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (DIRSTUDIO-845) "Friendly" time not displaying correctly
Date Sun, 11 Nov 2012 23:17:12 GMT

    [ https://issues.apache.org/jira/browse/DIRSTUDIO-845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495035#comment-13495035
] 

Joel edited comment on DIRSTUDIO-845 at 11/11/12 11:17 PM:
-----------------------------------------------------------

Now i'm beginning to understand how DS and timezones work in raw format (it's not just a DS
thing either by the looks of it). I found this useful webpage that states that using DateTime.Now()
is not the best idea and you should use DateTime.UtcNow() to store dates as a lot of software
that accesses databases have a habit of seeing the date and adding 11 hours to compensate
for the 'Z' which causes things to seem like they've been created in the future. I'm going
to request that the software vendor use DateTime.UtcNow() instead of the .Now() tag.

The software was taking the current date off the computer and appending the Z to the end and
sending that data to the eDir tree.

Thanks for the help.

http://blogs.msdn.com/b/kirillosenkov/archive/2012/01/10/datetime-utcnow-is-generally-preferable-to-datetime-now.aspx
                
      was (Author: paliente):
    Now i'm beginning to understand how DS and timezones work in raw format (it's not just
a DS thing either by the looks of it). I found this useful webpage that states that using
DateTime.Now() is not the best idea and you should use DateTime.UtcNow() to store dates as
a lot of software that accesses databases have a habit of seeing the date and adding 11 hours
to compensate for the 'Z' which causes things to seem like they've been created in the future.
I'm going to request that the software vendor use DateTime.UtcNow() instead of the .Now()
tag.

Thanks for the help.

http://blogs.msdn.com/b/kirillosenkov/archive/2012/01/10/datetime-utcnow-is-generally-preferable-to-datetime-now.aspx
                  
> "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

Mime
View raw message