Re: Calendar gadget shows Monday as the 1st day
Carlos, I didn't see this thread until now, if it is still open, I would
like to contribute that Andrew's method may be wrong for you because of the
different locations? Since I'm not on Vista myself, I cannot (or, I believe
I cannot) easily check or verify the bits and pieces, but the US default
should make Sunday the first day, I believe. In Scandinavia Monday is
definitely the first day and calendar math defines the first day as day
'0' - if you introduce calculations containing '-1' and change location too
you might actually expect anything, right?
0 -1 = 6 (Saturday, under the US default?)
Making changes here may change the number of the day without changing the
name too?
You may need to analyse what happens when you edit those lines, deep down
inside the system something is making recalculations by way of binary-logic
to wrap around between values from '0 - 6' and you might need to start off
by giving false information and tell a lie?
(a white one!)
Tony. . .
"Carlos" <atashian01@remove_the_obvious_hotmail.com> wrote in message
news:%23ROGFO%23rIHA.4876@TK2MSFTNGP02.phx.gbl...
> Andrew,
> A small bug in this method.
> Sunday is now to the left (Ok)
> Number "6" is highlighted (Ok, because it is Tuestday 6th)
> On the top row, the single letter that identifies the day of the week is
> wrong, I have Monday highlighted. In Spanish it is an "l" corresponding to
> Lunes (Monday in English).
> So, proper number of the day, wrong name of the day.
> Any suggestions?
> Carlos
>
> "Andrew Tapp" <AndrewTapp@discussions.microsoft.com> escribió en el
mensaje
> de noticias news:E7B89E69-5B81-4115-A05A-98F3998F8B78@microsoft.com...
> > I've been trying to sort this for a while as it is extremely anoying.
> >
> > In the folder c:\program files\windows
> > sidebar\gadgets\calendar.gadget\en-us\js is a file called calendar.js,
if
> > you
> > edit this (you will have to change the permissions/take ownership to do
> > so)
> > and change the line
> >
> > loc.day.first = vbsFirstDayOfWeek()-1;
> >
> > to
> >
> > loc.day.first = vbsFirstDayOfWeek();
> >
> > this will change the start day from Sunday to Monday.
> >
> > I've also change the same file in the program files (x86)... folder as
> > well.
> >
> > Seems to work well with no issues so far, remember take a backup first.
> >
> > Hope this helps.
> >
> > "Carlos" wrote:
> >
> >> Calendar gadget shows Monday as the first day of the week.
> >> Is there any workaround so that it shows Sunday instead?
> >> Believe it or not, it confuses me a lot (rhyme).
> >>
> >> Carlos
>