Article View: news.software.readers
Article #241834Re: [Dialog] Date column content (%datelocal%) in Win7
From: 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
Technical Details
Message-ID:
<r2frfwdtkdon.ofjotp0aorce.dlg@40tude.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<wnwq94z8n0we.1b2e5jhrtthbb$.dlg@40tude.net>Show Full Headers
Complete Article Headers
Message-ID: <r2frfwdtkdon.ofjotp0aorce.dlg@40tude.net> Subject: Re: [Dialog] Date column content (%datelocal%) in Win7 Date: Sun, 25 Jul 2010 13:01:57 +1000 From: Rom <-@-.invalid> References: <wnwq94z8n0we.1b2e5jhrtthbb$.dlg@40tude.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Lines: 73 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: individual.net zWG3BpAksyEtyxH/8rrOOQyZrWX59Va6YJu1SSDP//10bkZ5aW Cancel-Lock: sha1:9oWPgkV6uukapVZ4fanUzYxLbL8= User-Agent: 40tude_Dialog/2.0.15.41 Archive: no X-No-Archive: yes X-Original-Bytes: 3279