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 1 of 35, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

edit the source.
Maybe that patch of jal takes care of it. Not sure

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 35, by ghost84

User metadata
Rank Newbie
Rank
Newbie

Thank you, "jal" was the hint i needed! 😀
I will now try to compile it.

Reply 3 of 35, by Lizard

User metadata
Rank Newbie
Rank
Newbie

Hi.

I need the Date update too.
Can you help me?

Does it work?
I mean the compile version from you

lg

Reply 4 of 35, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

What's the exact problem?

Reply 5 of 35, by Lizard

User metadata
Rank Newbie
Rank
Newbie

my dosbox version must update the date alone.

Reply 6 of 35, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

why?

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 8 of 35, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Use bochs for stuff like that.

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 10 of 35, by Lizard

User metadata
Rank Newbie
Rank
Newbie

thx but bochs is more difficult than dosbox to use it.

and the programm mus be easy to use

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 12 of 35, by Lizard

User metadata
Rank Newbie
Rank
Newbie

Yes thats can i do but dosbox is better to use.
i tested vmware and virtual pc from microsoft.

This programms are not so good
dosbox is the better programm

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 15 of 35, by Chris_AU

User metadata
Rank Newbie
Rank
Newbie

Thank you for the info DosFreak.

Looks good (now has date and time commands).

Regards 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 17 of 35, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

> Hopefully there is an easy answer.

"Do not program when tired" 😉

1+1=10

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

Reply 19 of 35, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Yes I already found it. Not every month is a february. 2007 and 2009 should work though 😉

1+1=10