Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2003
    Posts
    49

    System Get Date Time bug?

    I just came across this problem while playing with the System.GetDateTime function. If you get the Time with AM/PM format, 12:00PM - 12:59PM displays as AM. Also, 12:00AM - 12:59AM displays as 0:mmAM. Bug or am I not doing something right? I'm using v4.0.0.4 on Windows XP.

  2. #2
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244

    Re: System Get Date Time bug?

    I think that should be 12:00pm - 11:59pm [img]/ubbthreads/images/icons/smile.gif[/img]

    Current time here is 21:03 and it seems to work fine displaying as 9:03:23PM

    Have you anything else going on that may be effecting it?

    Here is what I used:

    %Date% = System.GetDateTime ( "Time", "AM/PM Time")
    %Result% = Dialog.MessageBox ("Title", "%Date%", Ok, Question)
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

  3. #3
    Join Date
    Jul 2003
    Posts
    49

    Re: System Get Date Time bug?

    It only displays wrong between 12pm (noon) and 12:59pm, and 12am (midnight) and 12:59am. Set your clock to one of those times and see.

  4. #4
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244

    Re: System Get Date Time bug?

    Ah! I see .. sorry, i misread [img]/ubbthreads/images/icons/smile.gif[/img]
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

  5. #5
    Join Date
    Jul 2002
    Location
    Towson, MD USA
    Posts
    16

    Re: System Get Date Time bug?

    Yup. This bug has already been confirmed and added to the appropriate bugfix database. You can get around this by retrieving the military time and then using a series of if/then and search/replace actions to convert the result to standard time. I did this at first, but then decided to just stick with military time. The "old school" programmer in me just couldn't stand having the "extra" code in my project.

    Craig

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts