Page 1 of 1

Learning from the other side

Posted: Sun Nov 05, 2023 7:05 am
by richmond62
We would be churlish (and so would they) to ignore somethings going on 'up north', especially when they impinge directly on what we have inherited from them.

The 'thing' that caught my eye this morning was this:

https://forums.livecode.com/viewtopic.p ... ma#p226539

and, to save anyone the bother of 'taking a walk on the tame side', I will quote the meaty bits here:

"

Code: Select all

on mouseUp
set the useSystemDate to true
put the long date into field "f1"
end mouseUp
Gives me "Wednesday, November 1, 2023" yet my system date is set to Australia (day before month), my Mac showing "Wed 1 Nov" in the menu bar and elsewhere showing local date format at all times.

Same with "put the system date" into the message box, gives me "11/1/23" not "1/11/23", as does "put the date" of course.

MacOS 14.0"

As (Sunday) I am at home, and my machine running MacOS 14 is now at school (so check tomorrow), I can ONLY see what happens 'here' on my MacOS 12 machine:
-
Screenshot 2023-11-05 at 9.11.53.png
Screenshot 2023-11-05 at 9.11.53.png (64.47 KiB) Viewed 1416 times
-

Code: Select all

on mouseUp
   set the useSystemDate to true
   put the long date into field "f1"
   put the system date into field "f2"
end mouseUp
Certainly, 'over here' (MacOS 12) I can see no obvious problems.

Re: Learning from the other side

Posted: Sun Nov 05, 2023 7:21 am
by richmond62
Let's be TOTALLY INFANTILE and set the Calendar to something obscure:
-
Persian_Date.jpg
Persian_Date.jpg (172.18 KiB) Viewed 1410 times
-
Screenshot 1402-08-14 at 9.23.50.png
Screenshot 1402-08-14 at 9.23.50.png (62.7 KiB) Viewed 1409 times
-
Completely unacceptable!
-
Screenshot 1402-08-14 at 9.25.04.png
Screenshot 1402-08-14 at 9.25.04.png (6.47 KiB) Viewed 1409 times

Re: Learning from the other side

Posted: Sun Nov 05, 2023 7:31 am
by tperry2x
Whenever I've reliably needed to get the date in Livecode / OXT, I've always used the dateitems function. This is so regardless of what the system is set to, it'll always return the same output:
date.png
date.png (3.86 KiB) Viewed 1407 times
date-script.png
date-script.png (10.24 KiB) Viewed 1407 times
date.oxtstack.zip
(614 Bytes) Downloaded 120 times
Can you try this on Sonoma and see what output you get?

Re: Learning from the other side

Posted: Sun Nov 05, 2023 7:34 am
by richmond62
Can you try this on Sonoma and see what output you get?
Please read the first posting re me, my Sonoma machine, and testing . . .

Not until tomorrow. 8-)

Re: Learning from the other side

Posted: Sun Nov 05, 2023 7:36 am
by tperry2x
Haha, - Yes, don't worry. No rush :lol:

Re: Learning from the other side

Posted: Sun Nov 05, 2023 7:37 am
by richmond62
Wow! Dead-sexy effect on right-clicking on your file and selecting OXT Lite 0.93:
-
Screenshot 2023-11-05 at 9.35.51.png
Screenshot 2023-11-05 at 9.35.51.png (201.99 KiB) Viewed 1403 times
-
Here's the MacOS 12 result: although the IDE opened, inconsistently in Lightmode when the system is set to darkmode:
-
Screenshot 2023-11-05 at 9.38.37.png
Screenshot 2023-11-05 at 9.38.37.png (63.37 KiB) Viewed 1401 times

Re: Learning from the other side

Posted: Sun Nov 05, 2023 7:40 am
by tperry2x
That's weird. Or is the tools palette supposed to look like that on your build?

Re: Learning from the other side

Posted: Sun Nov 05, 2023 7:42 am
by tperry2x
richmond62 wrote: Sun Nov 05, 2023 7:37 am ..the IDE opened, inconsistently in Lightmode when the system is set to darkmode
Yes, it always does. It takes a few seconds for Paul's MacOS dark mode lci to snap in.
As I mentioned, it's because it's kind of tacked-on, and not a native method. However, if it's not loaded by the time you come to open a stack, that suggests to me that something else is wrong.

Re: Learning from the other side

Posted: Sun Nov 05, 2023 10:25 am
by richmond62
After 10 minutes it had not gone dark.