Re: System Time Zone

2022-09-14 Thread Bob Sneidar via use-livecode
Well, IDEALLY I would like a way that does not involve a lookup list, but I do not think that is possible. I already downloaded an official list of time zones in the proper format, and their standard and savings time offsets. That should be close enough. Another thing I can do is in a settings

Re: [semi-OT] PDF on the fly

2022-09-14 Thread matthias rebbe via use-livecode
I just tested on quartz.on-rev.com with LC Server 9.6.0. I've created a textfile with a size of 1mb. tested with this script and it worked. I even tested with put header instead of put new header. Which version of Safari do you have? > Am 14.09.2022 um 22:44

Re: [semi-OT] PDF on the fly

2022-09-14 Thread jbv via use-livecode
Hi guys, Thank you for your answers. No matter what I try, the problem remains the same on Safari. My LC script runs on my on-rev account, and it uses LC 9.6. Could this really be the problem ? Best, jbv ___ use-livecode mailing list

Re: [semi-OT] PDF on the fly

2022-09-14 Thread matthias rebbe via use-livecode
I am running 9.6.5 on the server where i tested the script. > Am 14.09.2022 um 21:22 schrieb matthias rebbe via use-livecode > : > > I just checked here with a script i am using for years to provide the > download of a csv file and it still works with Version 15.6 (17613.3.9.1.5). > Is that

Re: [semi-OT] PDF on the fly

2022-09-14 Thread matthias rebbe via use-livecode
I just checked here with a script i am using for years to provide the download of a csv file and it still works with Version 15.6 (17613.3.9.1.5). Is that the newest version? This is my script: put header "Content-Type: application/text" put header "Content-Length:" & the number of chars of

RE: [semi-OT] PDF on the fly

2022-09-14 Thread Ralph DiMola via use-livecode
How fortuitous... I just ran into this while doing JavaScript xhttp network requests to LC Server on Safari only. I just updated from LC Server 9.5.1. to 9.6.6. I saw it in Safari in iOS. Chrome in iOS worked OK. I went back to 9.5.1 and everything started working again in Safari. Do we possibly

[semi-OT] PDF on the fly

2022-09-14 Thread jbv via use-livecode
Hi list, I have a web site on which end users can select several options, and then click a button "show PDF", and a pdf containing various contents from a remote DB with a sophisticated layout is built server side in a second and automatically downloaded. The link of the button is something

Re: Standardize Font Appearance

2022-09-14 Thread Richard Gaskin via use-livecode
Neville wrote: > You can see screen grabs of the resulting Mac and Windows standalones > at > https://www.dropbox.com/s/v2hzwe159ep6nep/My%20beautiful%20app%20on%20Mac.png?dl=0 > > https://www.dropbox.com/s/wr2limdozwob9v7/My%20beautiful%20app%20on%20Windows.png?dl=0 Thank you for the

Re: System Time Zone

2022-09-14 Thread Richmond via use-livecode
https://use-livecode.runrev.narkive.com/PhNgjt9Q/time-problems-with-daylight-saving On 14.09.22 19:01, Richmond wrote: From an offset from GMT it is easy enough with this: https://upload.wikimedia.org/wikipedia/commons/8/88/World_Time_Zones_Map.png to run up a listField with timezones and

Re: System Time Zone

2022-09-14 Thread J. Landman Gay via use-livecode
That was my first thought too and I (erroneously) suggested the internet "time", which should have been "date". I found a ready-made lookup list and began experimenting. No go. You have to know whether the area is on daylight savings time because the offset changes. You also need to know the

Re: System Time Zone

2022-09-14 Thread Richmond via use-livecode
From an offset from GMT it is easy enough with this: https://upload.wikimedia.org/wikipedia/commons/8/88/World_Time_Zones_Map.png to run up a listField with timezones and their countries as a sort of ad-hoc lookup table. On 14.09.22 18:38, matthias rebbe via use-livecode wrote: The original

Re: System Time Zone

2022-09-14 Thread Richmond via use-livecode
I am simply trying to present a solution that works: 1. 100% in LiveCode. 2. 100% cross-platform. Richmond. On 14.09.22 18:38, matthias rebbe via use-livecode wrote: The original poster does not want to have the offset, but the time zone country/city and he already had a solution with apple

Re: System Time Zone

2022-09-14 Thread Richmond via use-livecode
Ah: sorry, I had no idea (having come late to the party) that you were wanting to interact with iCal. That does look like a bit of a headache: https://icalendar.org/iCalendar-RFC-5545/3-2-19-time-zone-identifier.html Richmond. On 14.09.22 18:35, Bob Sneidar via use-livecode wrote: It's not

Re: System Time Zone

2022-09-14 Thread matthias rebbe via use-livecode
The original poster does not want to have the offset, but the time zone country/city and he already had a solution with apple script. I provided a solution just with the shell function. > Am 14.09.2022 um 17:21 schrieb Richmond via use-livecode > : > > That seems a bit unnecessary as

Re: System Time Zone

2022-09-14 Thread Bob Sneidar via use-livecode
It's not dead easy from the perspective of iCalendar syntax. Zones are defined by text strings. I will need a lookup table for that. Bob S On Sep 14, 2022, at 08:21 , Richmond via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: That seems a bit unnecessary as 'internet date'

Re: System Time Zone

2022-09-14 Thread Richmond via use-livecode
That seems a bit unnecessary as 'internet date' produces a format that includes the GMT offset. So when I write this in the messageBox:  put the internet date I get: Wed, 14 Sep 2022 18:19:18 +0300 and, obviously, from the +0300 it is dead easy to work out my system time zone. Love,

Re: System Time Zone

2022-09-14 Thread matthias rebbe via use-livecode
Does your app has preferences the user can enter? Why not allow him to enter also the sudo password? You could then use that to execute the following shell command: put shell("echo | sudo -S /usr/sbin/systemsetup -gettimezone") replace with the password in preferences. No need to use

Re: System Time Zone

2022-09-14 Thread Bob Cole via use-livecode
Just for the sake of completeness, there is a way to get the time zone with AppleScript but it requires Administrator Privileges. The MacOS pops up a request to allow the “do as AppleScript” script to access the systemsetup function. That manual step will interfere with the flow of the program.