vDate := @Created;vWeekDay := @Select(@Weekday(vDate);“Sun”;“Mon”;“Tue”;“Wed”;“Thu”;“Fri”;“Sat”);
vDay := @Text(@Day(vDate));
vMonth := @Select(@Month(vDate);“Jan”;“Feb”;“Mar”;“Apr”;“May”;“Jun”;“Jul”;“Aug”;“Sep”;“Oct”;“Nov”;“Dec”);
vYear := @Text(@Year(vDate));
vTime := @Text(vDate;“S1T0”);
vZone := @Zone;
vZoneDST := @If(@Abs(vZone-@Integer(vZone)) > 0 ; 1 ; 0);
vZoneOffset := @Integer(vZone) - vZoneDST;
vSign := @If(vZoneOffset > 0; “-”; “+”);
vZoneFull := @Right(“0” + @Text(@Abs(vZoneOffset));2) + @Right(“0” + @Text(@If(vZoneOffset > 99 ; @Integer(@Abs(vZoneOffset)/100);0));2);
vWeekDay + ", " + vDay + " " + vMonth + " " + vYear + " " + vTime + " " + vSign + vZoneFull
I found this code in an article on notestips.com about creating an RSS feed in R6. The code works fine except for one thing. When the value is generated, my time zone is entered as -0400, but my actual time zone is -0500. I’ve never worked with time zones in Domino before, so I’m not exactly sure what to change. Has anybody used this formula from notestips before and found the same problem?
Subject: RSS 2.0 - RFC822 Date Format - @Formula
vDate := @Created;vWeekDay := @Select(@Weekday(vDate);“Sun”;“Mon”;“Tue”;“Wed”;“Thu”;“Fri”;“Sat”);
vDay := @Text(@Day(vDate));
vMonth := @Select(@Month(vDate);“Jan”;“Feb”;“Mar”;“Apr”;“May”;“Jun”;“Jul”;“Aug”;“Sep”;“Oct”;“Nov”;“Dec”);
vYear := @Text(@Year(vDate));
vTime := @Text(vDate;“S1T0”);
vTime := @Time(@Now);
vZone := @Zone;
vZoneDST := @If(@Abs(vZone-@Integer(vZone)) > 0 ; 1 ; 0);
vZoneOffset := @Integer(vZone) - vZoneDST;
vSign := @If(vZoneOffset > 0; “-”; “+”);
vZoneFull := @Right(“0” + @Text(@Abs(vZoneOffset));2) + @Right(“0” + @Text(@If(vZoneOffset > 99 ; @Integer(@Abs(vZoneOffset)/100);0));2);
vZoneFull := @TimeZoneToText(@GetCurrentTimeZone;“S”);
“” + vWeekDay + “, " + vDay + " " + vMonth + " " + vYear + " " + @Text(@Hour(vTime)) +”:“+@Text(@Minute(vTime))+”:"+@Text(@Second(vTime)) + " " + @right(vZoneFull;6) + “”
Subject: RSS 2.0 - RFC822 Date Format - @Formula
The content management template at http://www.dominoblog.com uses Mikes formula - but slightly amended to fix a few issues.
You can find the amended version in form “Content Notes” field “W3CUTC”.
Hope this is of help
Steve Castledine
http://www.dominoblog.com
steve.castledine@projectdx.org
Subject: RE: RSS 2.0 - RFC822 Date Format - @Formula
Ok, so I managed to see the big Downloads section on the top right and downloaded the template file. I copied the formula from the W3CUTC field and modified it to use the @created date as the initial vDate. However, xml still shows -0400 instead of -0500. I’ve checked my Domino server, and it’s Windows time zone is set to -0500. Is there something I’m missing here?
Subject: RSS 2.0 - .RSS or .XML
On the notestips article, Mike has us name the page myfeed.xml or rssfeed.xml in my case. Is there any difference in naming it either .rss or .xml? Will it fail to validate if it’s .xml and not .rss?
Subject: RE: RSS 2.0 - .RSS or .XML
Doesnt make any difference - the content type set by the output (view) is what matters.
Is the field computed within the view (not good idea) or computed within the document and therefore created by the Notes Client.
Check the notes client for time zone/ Daylight saving etc.
Subject: RE: RSS 2.0 - .RSS or .XML
I have it on a computed field. The time zone settings is set to use the OS’s time zone, which is GMT -05:00
Subject: RE: RSS 2.0 - .RSS or .XML
In which case the setting is nothing to do with the server - it is a local os on the client machine