Ok, i've fixed that. Funny bug... maybe tcl 'clock' behaviour has changed.
S.A
--- tcl/utils/date.tcl (revision 2717)
+++ tcl/utils/date.tcl (working copy)
@@ -188,12 +188,18 @@
}
proc ::utils::date::_layout {time} {
+ set m [clock format $time -format "%m"]
set month [string trimleft [clock format $time -format "%m"] 0]
set year [clock format $time -format "%Y"]
- foreach lastday {31 30 29 28} {
- if {[catch {clock scan "$year-$month-$lastday"}] == 0} { break }
+ foreach lastday {29 30 31 32} {
+ # 'clock' does not have a validation command (?), so make our own
+ if {"$year-$m-$lastday" != [clock format [clock scan
$year-$m-$lastday] -format {%Y-%m-%d}]} {
+ break
+ }
}
+ incr lastday -1
+
On Mon, Jul 3, 2017 at 6:21 AM, Okechukwu Iwu <afo...@charter.net> wrote:
> I just noticed that when saving a game, the calendar pop-up for June shows
> 31 days! Using version 4.17
> On Jul 1, 2017 8:08 AM, scidvspc-users-requ...@lists.sourceforge.net
> wrote:
> >
> > Send Scidvspc-users mailing list submissions to
> > scidvspc-users@lists.sourceforge.net
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > https://lists.sourceforge.net/lists/listinfo/scidvspc-users
> > or, via email, send a message with subject or body 'help' to
> > scidvspc-users-requ...@lists.sourceforge.net
> >
> > You can reach the person managing the list at
> > scidvspc-users-ow...@lists.sourceforge.net
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Scidvspc-users digest..."
> >
> >
> > Today's Topics:
> >
> > 1. New Best Games widget / 4.18 shortly (Steve A)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Sat, 1 Jul 2017 20:31:36 +1000
> > From: Steve A <stevena...@gmail.com>
> > To: scidvspc-users <scidvspc-users@lists.sourceforge.net>
> > Subject: [Scidvspc-users] New Best Games widget / 4.18 shortly
> > Message-ID:
> > <cakdnzpe2vbr-098g+imzzpklcmkhm_ak4q8w3oxvn7-zxu7...@mail.gmail.com>
> > Content-Type: text/plain; charset="utf-8"
> >
> > Hi,
> > I committed some code this weekend (a new Best Games window, aka the
> > gamelist)
> > and will probably make a release next weekend.
> > So if anyone has any translation updates or bug reports - please let me
> > know.
> >
> > Cheers, Steve
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> >
> > ------------------------------
> >
> > ------------------------------------------------------------
> ------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >
> > ------------------------------
> >
> > Subject: Digest Footer
> >
> > _______________________________________________
> > Scidvspc-users mailing list
> > Scidvspc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/scidvspc-users
> >
> >
> > ------------------------------
> >
> > End of Scidvspc-users Digest, Vol 60, Issue 1
> > *********************************************
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Scidvspc-users mailing list
> Scidvspc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scidvspc-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Scidvspc-users mailing list
Scidvspc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scidvspc-users