Search found 9 matches

by lilRalph
Sat Oct 22, 2022 11:18 pm
Forum: Coding Questions
Topic: Issues with the calendar and date gadgets.
Replies: 14
Views: 879

Re: Issues with the calendar and date gadgets.

Thanks for your assistance mk-soft.

My ability to read and fully follow your code has not helped me with finding the bug mentioned.

Found another bug in my DateTime module in the Linux part and fixed it. The time value is always UTC and I had forgotten to set the CalendarGadget output to Local ...
by lilRalph
Sat Oct 22, 2022 1:40 pm
Forum: Coding Questions
Topic: Issues with the calendar and date gadgets.
Replies: 14
Views: 879

Re: Issues with the calendar and date gadgets.

Never mind, I've tried your code in the previous link and that works fine as well.
Because it also includes code for Windows and Linux I can use that.

Thank you for your help and excellent code.
by lilRalph
Sat Oct 22, 2022 1:21 pm
Forum: Coding Questions
Topic: Issues with the calendar and date gadgets.
Replies: 14
Views: 879

Re: Issues with the calendar and date gadgets.

My time zone on the Mac is set to Central Australian Daylight Time.
The Mac reports the time and date currently as Sat 22 Oct 10:48 pm.

The CalendarGadget reports Sunday, 23 October 2022 at 9:19:08 am Australian Central Daylight Time.

I'll try mk-soft's code, thanks for your input, and see how ...
by lilRalph
Sat Oct 22, 2022 11:34 am
Forum: Coding Questions
Topic: Issues with the calendar and date gadgets.
Replies: 14
Views: 879

Re: Issues with the calendar and date gadgets.

All I'm trying to do is get a correct date for my time zone.

As you can see with the text I put in the last post the date was wrong because here it's still the 22nd and 9 pm.
That's a long way from 23rd and 7 am.

The calendar gadget on launch shows 23rd so it's being set internally from somewhere ...
by lilRalph
Sat Oct 22, 2022 11:14 am
Forum: Coding Questions
Topic: Issues with the calendar and date gadgets.
Replies: 14
Views: 879

Re: Issues with the calendar and date gadgets.

I didn't write this code >> CalDate = CalendarGadget(#PB_Any, 180, 70, 230, 200, 0).
That was done by the Form designer.

Where else would the text come from?
Run the code and please explain where I've gone wrong.

Actually, I ran your code snippet and got this in the debug window
Text = Sunday, 23 ...
by lilRalph
Sat Oct 22, 2022 10:45 am
Forum: Coding Questions
Topic: Issues with the calendar and date gadgets.
Replies: 14
Views: 879

Re: Issues with the calendar and date gadgets.

G'Day BarryG, I did read the manual but I tried it anyway and it does work.

What I'm building is a task manager tool for my Internet business.
I need it to tell me when a scheduled task should be done and flag when it's overdue.

I don't care about the time, but I do need the date to be correct.
by lilRalph
Sat Oct 22, 2022 6:16 am
Forum: Coding Questions
Topic: Issues with the calendar and date gadgets.
Replies: 14
Views: 879

Issues with the calendar and date gadgets.

I don't know if this is OS specific or generalised.
I also don't know if this shows up in other countries.
When using the Calendar or Date gadget the date returned gets screwed up and becomes different at certain times of the day.
The time component seems to lock onto the time the gadget launches ...
by lilRalph
Tue Jan 20, 2015 12:58 pm
Forum: Mac OSX
Topic: Not sure if I'm just stupid or if there is an issue.
Replies: 1
Views: 2016

Re: Not sure if I'm just stupid or if there is an issue.

One of the interesting things about posing a question in a forum is that you'll nearly always find the answer yourself before anyone else manages an answer.

The answer is in this link http://www.purebasic.fr/english/viewtopic.php?f=13&t=56473&hilit=open+web+browser and it works fine.

By the way ...
by lilRalph
Tue Jan 20, 2015 12:32 pm
Forum: Mac OSX
Topic: Not sure if I'm just stupid or if there is an issue.
Replies: 1
Views: 2016

Not sure if I'm just stupid or if there is an issue.

I need to be able to download a file which is streamed from a database.

Passing the link to a web browser triggers the download fine so that part of the code works.

Using RunProgram(), with the link, in Windows also works because it passes the lnk to the browser.

Unfortunately I cannot get this ...