VOGONS


Time and Date Issue

Topic actions

First post, by ghost84

User metadata
Rank Newbie
Rank
Newbie

Hello,

I'm using DosBox with the h-a-l-9000-patch because I need LPT1 support. It works fine except the issue when the date changes at midnight. Then the time counter still counts upward instead of starting over at 00:00:00, and the date in the program is not changed.

Is there any fix for this behaviour available?

With kind regards from Austria,
Franz Haider

Reply 7 of 35, by Lizard

User metadata
Rank Newbie
Rank
Newbie

beacause the apllication which is running with dos box is writing a log.
and i need a log file for every day this application run.

so it must update hisself automatic

Reply 9 of 35, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

http://bochs.sourceforge.net/
http://en.wikipedia.org/wiki/Bochs

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 11 of 35, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

and the programm mus be easy to use

I'm not fluent in VMWare's abilities concerning DOS but if it's ease of use you need coupled with this functionality, my idea would be to use VMWare. Set the program up nicely in an VMWare image and then use the VMWare player and the image. Probably easy enough for everyone to use...

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 13 of 35, by Chris_AU

User metadata
Rank Newbie
Rank
Newbie

Hi. I'm new here.

I found this topic as I have the same problem with the Time & Date not changing at midnight and this is critical for the log that is being created from our app.

Has anyone found an answer to this problem outside of restarting DOSBox every morning?

I have no programming experience, so am not able to make any changes myself.

Apart from the Time & Date issue DOSBox works brilliantly.

Hopefully someone can help.

Many thanks, Chris

Reply 16 of 35, by Chris_AU

User metadata
Rank Newbie
Rank
Newbie

Hopefully this can get to h-a-l-9000.

I've used your dosbox.exe file and dll's from your website (http://home.arcor.de/h-a-l-9000/dbdl.html).

It appeared as though the date and time was working well until the end of the month. The date changed from the 31st March 2008 to the 3rd April 2008 on the 1st of April 2008... missing out two days.

This happened on both PC's that we have DOSBox installed on (XP Pro OS).

Has anyone else experienced this?

I haven't tested the other months yet and I have run out of time (have to head home for my wedding anniversary 😀 ).

Hopefully there is an easy answer.

Many thanks,

Chris

Reply 18 of 35, by Chris_AU

User metadata
Rank Newbie
Rank
Newbie

Hi h-a-l-9000

A quick update for you.

I have now tested the first 7 months of the year for changing over to the following month. I didn't bother going any further as there became a very clear patten.

Results:
Jan 31st changed to Feb 3rd
Feb 29th changed to Mar 1st
Mar 31st changed to Apr 3rd
Apr 30th changed to May 2nd
May 31st changed to Jun 3rd
Jun 30th changed to Jul 2nd
Jul 31st changed to Aug 3rd

Appears to be working on a base of 29 days and any months with more than 29 days it is adding those extra days onto the following month.

Hope this helps

Many thanks.

Chris