🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #241835

Re: [Dialog] Date column content (%datelocal%) in Win7

#241835
From: Rom
Date: Sun, 25 Jul 2010 03:43
62 lines
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
Technical Details
Message-ID: <70i0cm3lac30$.1oyitvu3ypr48$.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.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!newsfeed-0.progon.net!progon.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <wnwq94z8n0we.1b2e5jhrtthbb$.dlg@40tude.net> <r2frfwdtkdon.ofjotp0aorce.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <70i0cm3lac30$.1oyitvu3ypr48$.dlg@40tude.net>
Subject: Re: [Dialog] Date column content (%datelocal%) in Win7
Date: Sun, 25 Jul 2010 13:43:47 +1000
From: Rom <-@-.invalid>
References: <wnwq94z8n0we.1b2e5jhrtthbb$.dlg@40tude.net> <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.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!newsfeed-0.progon.net!progon.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 62
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net sL0Gll+0WIcVP6NhTHLogwrod8YEfwV0n3uEx29nkRIOdgYClB
Cancel-Lock: sha1:GMLVK5pDHRmPVPP3C7Tniby16Dk=
User-Agent: 40tude_Dialog/2.0.15.41
Archive: no
X-No-Archive: yes