Thread View: news.software.readers
9 messages
9 total messages
Started by Rom
Sun, 25 Jul 2010 00:19
[Dialog] Date column content (%datelocal%) in Win7
Author: Rom
Date: Sun, 25 Jul 2010 00:19
Date: Sun, 25 Jul 2010 00:19
19 lines
1792 bytes
1792 bytes
The Date column content (%datelocal%) of Dialog (only) in Win7 doesn't work/display the correct English (Australia) date & time formats specified in Region and Language of Control Panel on this Win7 64-bit system (notebook). However, it did work/display correctly in Dialog on my other Vista 64-bit system (desktop). For example: Instead of dd/MM/yyyy for the date format and hh:mm:ss tt for the time format Dialog will only display M/dd/yyyy and h:mm:ss tt in the Date column for %datelocal%. Is there any way to change how Dialog displays the Date column content (especially reversing the month/day)? BTW, this seems to be the only (display) issue I have. -- Rom
Re: [Dialog] Date column content (%datelocal%) in Win7
Author: Rom
Date: Sun, 25 Jul 2010 03:01
Date: Sun, 25 Jul 2010 03:01
73 lines
3549 bytes
3549 bytes
On Sun, 25 Jul 2010 10:19:54 +1000, Rom wrote:
> The Date column content (%datelocal%) of Dialog (only) in Win7 doesn't
> work/display the correct English (Australia) date & time formats
> specified in Region and Language of Control Panel on this Win7 64-bit
> system (notebook). However, it did work/display correctly in Dialog on
> my other Vista 64-bit system (desktop).
>
> For example: Instead of dd/MM/yyyy for the date format and hh:mm:ss tt
> for the time format
>
> Dialog will only display M/dd/yyyy and h:mm:ss tt in the Date column
> for %datelocal%.
>
> Is there any way to change how Dialog displays the Date column content
> (especially reversing the month/day)?
I found an old script from MLC to a similar question (Message-ID:
<198riihzxidak.dlg@ID-187316.user.uni-berlin.de>):
| giovedì 10/giu/2004 _Thomas Edison_ ha scritto:
|
| > Is there any way of making the display of the time that a message was sent
| > (in the message list) _not_ show seconds?
| >
| > e.g. on my screen I see:
| > 09/06/2004 14:46:12
| >
| > Is there any way to remove the ":12".
|
|
| Yes, with a script in the OnArticleListPaint event.
| (write your correct settings in the const section and remove the leading ||)
|| program OnArticleListPaint;
|| const
|| colDate = 5; //count the columns from left to right starting
|| //from 0 and write here the number of the column Date
|| dateFmt = 'dd/mm/yyyy hh:mm'; //or yy (instead of yyyy) for a 2 digits year
|| function OnArticleListPaint(PaintString:widestring; ColumnIndex:integer):widestring;
|| var fmt : String;
|| begin
|| if ColumnIndex = colDate then fmt := dateFmt;
|| PaintString := FormatDateTime(fmt, StrToDateTime(PaintString));
|| result := PaintString;
|| end;
|| begin
|| end.
I made the following changes to the above script (and removed the
leading "|| ":
colDate = 6;
dateFmt = 'dd/MM/yyyy hh:mm:ss tt';
The columns I have are: Status/Score, Size, Lines, +/-, Subject, Name,
and Date (I have seperate columns for Subject and Name), which makes
the Date column 6 when starting from 0 for colDate. I entered the date
and time formats as I want for dateFmt.
Although the date format changes correctly, I also seem to get lots of
exceptions about subjects etc., and two different times (formats)
displaying. What do I need to change in the script?
--
Rom
Re: [Dialog] Date column content (%datelocal%) in Win7
Author: Rom
Date: Sun, 25 Jul 2010 03:43
Date: Sun, 25 Jul 2010 03:43
62 lines
2987 bytes
2987 bytes
On Sun, 25 Jul 2010 13:01:57 +1000, Rom wrote: > On Sun, 25 Jul 2010 10:19:54 +1000, Rom wrote: > >> The Date column content (%datelocal%) of Dialog (only) in Win7 doesn't >> work/display the correct English (Australia) date & time formats >> specified in Region and Language of Control Panel on this Win7 64-bit >> system (notebook). However, it did work/display correctly in Dialog on >> my other Vista 64-bit system (desktop). [...] > I found an old script from MLC to a similar question (Message-ID: > <198riihzxidak.dlg@ID-187316.user.uni-berlin.de>): [...] Message-ID: <15303yda7jsqh.dlg@ID-187316.user.uni-berlin.de> had a correction to that script. || program OnArticleListPaint; || const || colDate = 5; //count the columns from left to right starting || //from 0 and write here the number of the column Date || dateFmt = 'dd/mm/yyyy hh:mm'; //or yy (instead of yyyy) for a 2 digits year || function OnArticleListPaint(PaintString:widestring; ColumnIndex:integer):widestring; || || var fmt : String; || begin || if ColumnIndex = colDate then || begin || fmt := dateFmt; || PaintString := FormatDateTime(fmt, StrToDateTime(PaintString)); || result := PaintString; || end; || end; || begin || end. > The columns I have are: Status/Score, Size, Lines, +/-, Subject, Name, > and Date (I have seperate columns for Subject and Name), which makes > the Date column 6 when starting from 0 for colDate. I entered the date > and time formats as I want for dateFmt. Now with the following changes to that script: colDate = 6; dateFmt = 'dd/mm/yyyy hh:mm:ss AM/PM'; displays the date and time formats correctly in the Date column, but then nothing displays in the other columns. Possibly a column thing/how I have columns setup, but what changes need to be made in the script now? -- Rom
Re: [Dialog] Date column content (%datelocal%) in Win7
Author: Rom
Date: Wed, 28 Jul 2010 00:59
Date: Wed, 28 Jul 2010 00:59
15 lines
1475 bytes
1475 bytes
On Sun, 25 Jul 2010 10:19:54 +1000, Rom wrote: > The Date column content (%datelocal%) of Dialog (only) in Win7 doesn't > work/display the correct English (Australia) date & time formats > specified in Region and Language of Control Panel on this Win7 64-bit > system (notebook). However, it did work/display correctly in Dialog on > my other Vista 64-bit system (desktop). [...] I used this script, which works: <http://dialog.datalist.org/scripts/DisplayAgentThreadsV3-Customize-Date-Time.html> -- Rom
Re: [Dialog] Date column content (%datelocal%) in Win7
Author: MCC
Date: Wed, 28 Jul 2010 06:47
Date: Wed, 28 Jul 2010 06:47
31 lines
2386 bytes
2386 bytes
On Sun, 25 Jul 2010 10:19:54 +1000, Rom wrote: > The Date column content (%datelocal%) of Dialog (only) in Win7 doesn't > work/display the correct English (Australia) date & time formats > specified in Region and Language of Control Panel on this Win7 64-bit > system (notebook). However, it did work/display correctly in Dialog on > my other Vista 64-bit system (desktop). > > For example: Instead of dd/MM/yyyy for the date format and hh:mm:ss tt > for the time format > > Dialog will only display M/dd/yyyy and h:mm:ss tt in the Date column > for %datelocal%. > > Is there any way to change how Dialog displays the Date column content > (especially reversing the month/day)? > > BTW, this seems to be the only (display) issue I have. I seem to recall this being discussed fairly recently either in this group or possibly another to which I am subscribed. The answer seemed to be to alter the date and time format in the Region and Language settings in Control Panel of Windows 7 even though they seemed to be correct, restart Dialog, and then to re-set the date and time format to the correct Control Panel settings - probably as they were before - and once again re-start Dialog. Lo and behold Dialog uses the correct date and time format as per the regional settings. -- MCC
Re: [Dialog] Date column content (%datelocal%) in Win7
Author: Oliver Cromm
Date: Wed, 28 Jul 2010 23:21
Date: Wed, 28 Jul 2010 23:21
32 lines
2664 bytes
2664 bytes
* MCC:
> On Sun, 25 Jul 2010 10:19:54 +1000, Rom wrote:
>
>> The Date column content (%datelocal%) of Dialog (only) in Win7 doesn't
>> work/display the correct English (Australia) date & time formats
>> specified in Region and Language of Control Panel on this Win7 64-bit
>> system (notebook).[...]
>
> I seem to recall this being discussed fairly recently either in this group
> or possibly another to which I am subscribed.
>
> The answer seemed to be to alter the date and time format in the Region and
> Language settings in Control Panel of Windows 7 even though they seemed to
> be correct, restart Dialog, and then to re-set the date and time format to
> the correct Control Panel settings - probably as they were before - and
> once again re-start Dialog.
> Lo and behold Dialog uses the correct date and time format as per the
> regional settings.
When I change the date format in regional settings, date format in
Dialog is changed immediately, without restarting.
YMMV, of course.
--
er (Tristan) hiez im ein tôrenkleit
an der stete machen:
von wunderlîchen sachen
einen roc seltsên getan
und eine gugelen daran
H. V. FREIBERG Tristan
Re: [Dialog] Date column content (%datelocal%) in Win7
Author: Rom
Date: Wed, 28 Jul 2010 23:30
Date: Wed, 28 Jul 2010 23:30
29 lines
2270 bytes
2270 bytes
On Wed, 28 Jul 2010 07:47:06 +0100, MCC wrote: > On Sun, 25 Jul 2010 10:19:54 +1000, Rom wrote: > >> The Date column content (%datelocal%) of Dialog (only) in Win7 doesn't >> work/display the correct English (Australia) date & time formats >> specified in Region and Language of Control Panel on this Win7 64-bit >> system (notebook). However, it did work/display correctly in Dialog on >> my other Vista 64-bit system (desktop). [...] > I seem to recall this being discussed fairly recently either in this group > or possibly another to which I am subscribed. I don't recall it being discussed in this group recently. > The answer seemed to be to alter the date and time format in the Region and > Language settings in Control Panel of Windows 7 even though they seemed to > be correct, restart Dialog, and then to re-set the date and time format to > the correct Control Panel settings - probably as they were before - and > once again re-start Dialog. > Lo and behold Dialog uses the correct date and time format as per the > regional settings. I tried that (old trick) first and it did not work. Tried again after reading your message (without the script to change the date running in Dialog) and again it did not work. -- Rom
Re: [Dialog] Date column content (%datelocal%) in Win7
Author: Rom
Date: Thu, 29 Jul 2010 00:07
Date: Thu, 29 Jul 2010 00:07
13 lines
1658 bytes
1658 bytes
On Wed, 28 Jul 2010 19:21:19 -0400, Oliver Cromm wrote: > When I change the date format in regional settings, date format in > Dialog is changed immediately, without restarting. Yes, the date and time formats change immediately in Dialog but it doesn't stick as after restarting Dialog the date & time formats in Dialog reverts to m/dd/yyyy h:mm:ss tt (some default?) and is ignoring the date & time formats that are specified in Region and Language of Control Panel. -- Rom
Re: [Dialog] Date column content (%datelocal%) in Win7
Author: MCC
Date: Thu, 29 Jul 2010 05:03
Date: Thu, 29 Jul 2010 05:03
36 lines
2626 bytes
2626 bytes
On Wed, 28 Jul 2010 07:47:06 +0100, MCC wrote: > On Sun, 25 Jul 2010 10:19:54 +1000, Rom wrote: > >> The Date column content (%datelocal%) of Dialog (only) in Win7 doesn't >> work/display the correct English (Australia) date & time formats >> specified in Region and Language of Control Panel on this Win7 64-bit >> system (notebook). However, it did work/display correctly in Dialog on >> my other Vista 64-bit system (desktop). >> >> For example: Instead of dd/MM/yyyy for the date format and hh:mm:ss tt >> for the time format >> >> Dialog will only display M/dd/yyyy and h:mm:ss tt in the Date column >> for %datelocal%. >> >> Is there any way to change how Dialog displays the Date column content >> (especially reversing the month/day)? >> >> BTW, this seems to be the only (display) issue I have. > > I seem to recall this being discussed fairly recently either in this group > or possibly another to which I am subscribed. > > The answer seemed to be to alter the date and time format in the Region and > Language settings in Control Panel of Windows 7 even though they seemed to > be correct, restart Dialog, and then to re-set the date and time format to > the correct Control Panel settings - probably as they were before - and > once again re-start Dialog. > Lo and behold Dialog uses the correct date and time format as per the > regional settings. This is a link to the thread via Google to the thread in uk.people.silversurfers - http://tinyurl.com/388p48q -- MCC
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads