Menu

#18 Date inconsistency

open-accepted
nobody
None
7
2009-11-24
2004-09-02
Anonymous
No

I'm running winXP SP1 on a NORWEGIAN system.
Our date notation differ from the normal mm/dd/yy,
instead we have dd/mm/yy.
A note doesn't count this in when it's writing down the
dates in notes.xml. So when i set an alarm date, 6th
September, 2004, A note writes 06/09/2004 to notes.xml
(encoded of course). And when it reads notes.xml, it'll
read in the mm/dd/yy format, which means 9th June,
2004. Kinda frustrating every time i restart A notes (or
the computer for that sake) I hear the alarm sound and
have to reset the alarm to the correct date.
I'm currently looking into temporarily fixing it myself, but
I'm no c++ guru.

Discussion

  • Aaron Hochwimmer

    Logged In: YES
    user_id=753862

    I'm no c++ guru unfortunately but can spot the issue:

    line 343 of mainfrm.cpp

    StringEncode (pNote->GetAlarm ().Format ("%m/%d/%Y %H:%M:%S")),

    Must be a system variable to obtain the locale %m/%d/%Y but
    what?

    that and also in notes.cpp the GetDefaultTitle method the
    date format is hard-coded to %m/%d/%y

    Could a preference be added to set this format string rather
    than have it hard-coded?

    I'd make a sourceforge donation if this got some priority to
    be fixed :)

     
  • Trilarion

    Trilarion - 2009-11-24

    This is serious and should be corrected by the used locale. I will try to fix this as one of the next steps.

     
  • Trilarion

    Trilarion - 2009-11-24
    • priority: 5 --> 7
    • status: open --> open-accepted
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.