How to set the current date on a Macintosh SE ?

pat665

New Tinkerer
Oct 31, 2021
15
18
3
65
France, Montpellier
Hi guys,

It might be a dummy question but it has been puzzling me for quite long. When using the "Date and Time" application (Date et Heure en français) it's impossible to set the year to 2022. It falls back to 1922.

Those using the vMac emulator will not see the problem, because the date is set from the host machine automatically.
But I'm using Hypercard on a real Mac SE and not having the correct date can be a problem. Strangely there is no Hypertalk command to set the system date. I have a solution, but maybe be I'm missing a simple one.

My solution was to build an Hypercard stack that mimics the "Date & Time" application. As Hypercard has no built-in way to set the date, I've made an XCMD using CompileIt! that is calling the Toolbox. I've learned a lot during the process and it's not a waste of time for me. But again I could be missing the obvious ...

Date4SE.png

--
Merci pour vos avis et conseils
Patrick
 

pat665

New Tinkerer
Oct 31, 2021
15
18
3
65
France, Montpellier
Thank you !

I did not know this page. I'm keeping it in my bookmarks for later exploration.

I'm using System 6.0.7 (never been able to get the 6.0.8 in French) with vMac, and System 7.1 French on the Mac SE (on a real SCSI drive!).

This setdate works on both systems. On system 7, it's working directly when clicking on it. On system 6, one has to add it to the control panel.

SetdateOnSYS607.png

The source in C is provided too. Quite long though and most of the code is for handling the interface. It might prove useful to study it. I prefer Pascal though. This is where Hypercard and CompileIt! shine. Much more easy.

Code4CompileIt!.png

--
Bonne journée et meilleurs voeux pour cette année 2022
Patrick
 
  • Like
Reactions: splorp

pat665

New Tinkerer
Oct 31, 2021
15
18
3
65
France, Montpellier
The system 7.1 works beautifully on my french system.
The General334patch does not unfortunately. I don't have a 6.0.8 french system. Mine is a 6.0.7. I've never been able to get a 6.0.8 french.

Using the down arrow to move from 22 to 21 then up to 22, the date resulting was 1945.
A second attempt leads me to 1922.



Anyway it's nice to have several ways to fix the problem.

--
Merci à tous
 

rollmastr

New Tinkerer
Oct 31, 2021
19
14
3
You cannot enter a year later than 2020 directly or through the arrows which is why I wrote you have to let the mac do the year change.

Enter 31.12.2020 23:59 and wait for the mac to jump to 2021. Repeat for 2021->2022. Worked fine on a German 6.0.7. I believe 6.0.8 only came in English.
 

pat665

New Tinkerer
Oct 31, 2021
15
18
3
65
France, Montpellier
Sorry I wasn't clear enough. I have installed the patch, as suggested by davewonggillies. It's supposed to let one use the arrows and it's true for System 7.1.


Install the 2020Patch extension

Your solution works too.

--
Désolé pour le flou
Patrick
 

rdmark

Moderator
Staff member
Oct 3, 2021
164
230
43
Another option for your consideration is to run the Timelord time server that is included with Netatalk on a Linux/*BSD system, and then use the Tardis extension on your Mac to sync the system time on bootup. This bypasses entirely the need to bother with the control panel's date picker. As an added boon, you don't have to keep a leaky PRAM battery in your machine to have it keep the time. ;)

See this recent thread about my Netatalk 2.2.x fork for pointers on how to set up Netatalk and Timelord!

Screenshot for illustration. Once you 'Set Time' here Tardis will remember the server and sync with it on boot.
multi-tardis.jpg
 
Last edited: