Commit Graph

194 Commits

Author SHA1 Message Date
Stefan Neis
a452689b23 Use thread-safe functions where possible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-17 22:01:43 +00:00
Włodzimierz Skiba
96531a71a0 filename correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-23 20:40:42 +00:00
Vadim Zeitlin
f536f00539 don't declare strptime() ourselves if the system already does it, we might have a slightly different declaration and this causes problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 22:34:03 +00:00
Vadim Zeitlin
17a1ebd101 first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 19:59:19 +00:00
Vadim Zeitlin
7a7bd38a77 fixed two icc warnings about local variables hiding parameters
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 16:19:02 +00:00
Vadim Zeitlin
4115960d4b remove extraneous semicolons (patch 1299687)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-24 20:29:22 +00:00
Mart Raudsepp
8907154c1a Nuke #pragma implementation/interface's
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
9ffaedfcd0 don't define constants unused in release build (SGI CC warning)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-20 22:17:40 +00:00
Chris Elliott
18c9aebeca fix as discuused on wxdev for bc54
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-29 15:46:55 +00:00
Vadim Zeitlin
b624acad7e another (blind) compilation fix for Borland after last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-29 14:09:51 +00:00
Vadim Zeitlin
bd118d35c6 (blind) compilation fix for Borland after last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-29 13:48:56 +00:00
Vadim Zeitlin
d26adb9df7 Fixed several bugs in wxDateTime timezone handling:
- ToTimezone() and MakeTimezone() now work as expected
 - added and documented FromTimezone() and MakeFromTimezone()
 - Set(double jdn) interprets jdn always in UTC
 - updated ParseRfc822Date() timezone handling
 - removed workarounds for old bugs from the test


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-28 13:06:36 +00:00
Michael Wetherell
594588aa22 Work around mingw/cygwin bug 1046059
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-02 07:47:57 +00:00
Julian Smart
3103e8a97e Typo correction patch [ 1208110 ] Lots of typo corrections
Olly Betts


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-31 09:20:43 +00:00
Vadim Zeitlin
be4e7abf54 fixed GetLocaleDateFormat() to work with all locales, not just ones using only , and
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-08 23:35:34 +00:00
David Elliott
7347d453c5 Thinking about it, this is a bad idea as MW CRT's struct tm is two
fields shorter than BSD's as MW's lacks TZ fields.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-27 08:56:27 +00:00
David Elliott
dcbd3762e8 Declare strptime when using MSL headers on OS X.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-27 08:38:34 +00:00
Vadim Zeitlin
7d3e806d86 missing break in ParseFormat() (part of patch 1160117)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-17 23:23:15 +00:00
Vadim Zeitlin
af80bc9294 fixed wxDateTime::SetToWeekDayInSameWeek(Sun, Monday_First)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-17 23:11:00 +00:00
Włodzimierz Skiba
ba9bbf1388 'Dummy' warning fixes (might be used uninitialized).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-14 20:00:42 +00:00
Włodzimierz Skiba
74b99d0f8a WinCE fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-09 07:36:34 +00:00
Vadim Zeitlin
05eb2d40c3 PPC 2003 SDK doesn't seem to have setlocale() neither so just don't use it under Win CE at all
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-08 00:07:55 +00:00
Vadim Zeitlin
4f0436e465 fixed bug in Set(double jdn): don't test whether the date is valid before setting it (closes 1158535)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-08 00:01:32 +00:00
Vadim Zeitlin
e44501a0cb compilation fix for CE with Standard SDK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-07 22:40:51 +00:00
Robin Dunn
10a2749bd7 avoid buffer overrun
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 18:35:34 +00:00
Julian Smart
c5fe22f8f4 WinCE doesn't have GetThreadLocale
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 11:33:07 +00:00
Vadim Zeitlin
456639ac87 really fixed bug with DST in Set(h, m, s, ms) (see patch 1097811)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-24 16:51:43 +00:00
Václav Slavík
64f9c10094 fixed wxDateTime::ParseFormat to correctly handle '%x' on Windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-22 16:48:34 +00:00
Włodzimierz Skiba
6a27c749b3 wxDatePicker and wxDateTime for PalmOS. Remove conflict with internal maxDays in PalmOS. #if wxUSE_XXX for limited builds.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-15 07:24:37 +00:00
Julian Smart
77b88df26f Applied patch [ 1120683 ] Fix for wxDateTime::Format() under Windows CE
by upcase


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-12 10:15:18 +00:00
Włodzimierz Skiba
525d858363 Last .empty() string source cleaning before 2.5.4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-02 13:57:02 +00:00
Włodzimierz Skiba
26364344e5 As small as possible reorganization within wxDateTime to please PCH in DLL build under Borland.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-01 19:54:43 +00:00
Vadim Zeitlin
9cc311d32c fixed bug in Set() on DST days (patch 1097811)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-31 01:39:54 +00:00
Włodzimierz Skiba
1aaf88d220 Common default datetime formats.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-17 21:29:23 +00:00
Włodzimierz Skiba
bb8a847812 Warning fixes, IsEmpty->empty.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-09 18:48:38 +00:00
Robin Dunn
3d78a53231 The old workaround for the 1-Jan-1970 bug still failed in some
timezones.  This new workaround seems to work better.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 01:06:45 +00:00
Włodzimierz Skiba
5e233068dc Darwin fixes (OW,BCC,MinGW,DMC tested).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-13 14:09:48 +00:00
Włodzimierz Skiba
42841dfcad Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-11 16:30:43 +00:00
Włodzimierz Skiba
907173e51d Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-06 20:21:57 +00:00
Vadim Zeitlin
4c27e2faf3 deprecated SetToTheWeek() and GetWeek(); added and documented new and well-defined SetToWeekOfYear()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-11 22:07:10 +00:00
Vadim Zeitlin
1c5d27e2ab fixed GetWeekOfYear() for first/last week in some cases (patch 908793)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-11 21:37:28 +00:00
Włodzimierz Skiba
68379eaf0a Source cleaning: whitespaces, tabs, TRUE/true, FALSE/false, -1/wxID_ANY/wxDefaultCoord, !!/!IsEmpty().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-10 12:56:07 +00:00
Vadim Zeitlin
2c622d7178 fixed wxDateTime::GetWeekDayName() for wday > Wed (patch 998646)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-30 23:33:16 +00:00
Vadim Zeitlin
8cc00d5fca fixed bug in wxDateTime::Set(jdn) when DST was in effect
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-23 21:53:15 +00:00
Julian Smart
655719367a Use old licence name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e Name and version changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Julian Smart
4739346e19 Applied patch [ 859194 ] wxDateTime::SetFromDOS gives unpredictable results
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-13 10:28:29 +00:00
Vadim Zeitlin
f49d731fd4 fix for wxDateTime::SetToYearDay(last month day) (bug 816065)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-21 23:00:37 +00:00
Julian Smart
653567bb4c char -> wxChar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 22:13:36 +00:00
Julian Smart
0308fd61a2 Fixed bug [ 756485 ] wxDateTime::ParseTime fails with assertion when it shouldn't
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 17:01:15 +00:00