Commit Graph
36 Commits
Author SHA1 Message Date
Miguel de Icaza 2852ed0b59 Update copyrights 2011-09-13 18:26:13 -04:00
Sebastien Pouliot 7fad18abb0 Ensure we can roundtrip 'Local' (special case) timezone. Fix bug #326 2011-09-09 11:29:52 -04:00
Sebastien Pouliot 215eda5333 Move private TimeType struct outside TimeZoneInfo
* TimeZoneInfo.cs: Move TimeType struct outside TimeZoneInfo since the
later is located in corlib (using TypeForwardedTo) in 4.0/SL4. This adds
an extra extern type to System.Core which is not liked by peverify
2011-03-21 09:38:47 -04:00
Marek Safar f3ac37d4b2 Remove wrong using 2011-03-11 11:09:32 +00:00
Duane Wandless 1809dc9900 GetApplicableRule returns NULL in TimeZoneInfo.cs yet the code does not always handle a NULL return value.
This change fixes this issue and allows timezones like China Standard Time to work.
2011-03-10 10:56:08 -05:00
Jonathan Pryor 40c3113d8f Fix the basic-profile build. 2011-01-31 15:17:46 -05:00
Jonathan Pryor d49ecf5a4d [monodroid] Fix System.TimeZoneInfo.
Most System.TimeZoneInfo members weren't be included in the build.
2011-01-31 14:08:41 -05:00
Geoff Norton 16d4fd790b Further .NET 4.0 ification of the mobile profile 2011-01-25 20:10:54 -05:00
Marek Safar d84d7c7eb9 Remove no longer used BOOTSTRAP conditionals 2010-12-29 12:41:12 +00:00
Jonathan Pryor 8a263984e9 [monodroid] Add support for the Android TimeZone file format.
Fixes #657609.

Android uses "ye standard" timezone file format, but instead of using
a directory + file structure as libc uses, they throw everything into
two files, a "zoneinfo.dat" and a "zoneinfo.idx", where "zoneinfo.dat"
is the concatenation of all the TZIF files and "zoneinfo.idx" contains
the timezone names and offsets into "zoneinfo.dat".  From the
ZoneInfoDB documentation:

	However, to conserve disk space the data for all time zones
	are concatenated into a single file, and a second file is
	used to indicate the starting position of each time zone
	record.  A third file indicates the version of the zoneinfo
	databse used to generate the data.

TimeZoneInfo.Android.cs is a C# port of the corresponding Android
ZoneInfoDB type so that Mono can use Android's timezone DB.
2010-12-16 13:17:38 -05:00
Jb Evain 804b3d42d0 Enable the System.Core build for monodroid 2010-09-08 18:48:28 +02:00
tgiphil c9bc218cd3 Moved ValidateRules method in TimeZoneInfo.cs outside of LIBC since a caller outside of LIBC calls the method. Fixes compile error when LIBC is not defined. 2010-07-22 17:54:26 -07:00
Gonzalo Paniagua Javier 4e6e02a348 2010-07-09 Gonzalo Paniagua Javier <[email protected]>
* TimeZoneInfo.cs: avoid nullref when there are no adjustment rules.
	Fixes bug #619811.


svn path=/trunk/mcs/; revision=160159
2010-07-09 21:37:48 +00:00
Jb Evain 39bc3d7551 2010-06-21 Jb Evain <[email protected]>
* TimeZoneInfo.cs: fix the moonlight and monotouch build.


svn path=/trunk/mcs/; revision=159234
2010-06-21 10:03:44 +00:00
Miguel de Icaza daf9939128 2010-06-18 Vincent Povirk <[email protected]>
* TimeZoneInfo.cs: Applied patch from Vincent Povirk that adds
        support for reading time zone information on windows.

        This patch makes TimeZoneInfo.GetSystemTimeZones and
        FindSystemTimeZoneById work based on the registry on non-Unix
        platforms, if the appropriate registry key exists. Mono currently
        reads from /usr/share/zoneinfo, which doesn't exist on Windows.

        This should fix bug 606084.

        It won't fix the Local property on Windows. I think that requires
        a Windows API call to get the id of the local timezone.

        This was modified from the previous version to not check the
        registry on Unix platforms. (Sorry it took me so long to do
        this. I have very little time to spend on Mono-related work.)


svn path=/trunk/mcs/; revision=159163
2010-06-18 23:36:52 +00:00
Sebastien Pouliot 3009ec5a50 2010-04-16 Sebastien Pouliot <[email protected]>
* Actions.cs: Forward Action() to mscorlib.dll and add the new
	Action<...T16> delegates
	* Funcs.cs: Add the new Func<...T16> delegates
	* TimeZoneInfo.cs: Forward to mscorlib.dll


svn path=/trunk/mcs/; revision=155630
2010-04-16 13:21:02 +00:00
Sebastien Pouliot 081bf46075 fix TimeZoneInfo for moonlight (moving from System.Core to mscorlib)
svn path=/trunk/mcs/; revision=154478
2010-03-30 19:23:59 +00:00
Jb Evain 7109be8d25 fix typos
svn path=/trunk/mcs/; revision=154467
2010-03-30 17:09:53 +00:00
Gonzalo Paniagua Javier af5df1d187 signature fixes
svn path=/trunk/mcs/; revision=150244
2010-01-26 21:12:48 +00:00
Marek Safar 6d2dd00b2a More 4.0 bootstrap work
svn path=/trunk/mcs/; revision=141787
2009-09-11 20:08:44 +00:00
Sebastien Pouliot 838010f0cd 2009-07-16 Sebastien Pouliot <[email protected]>
* InvalidTimeZoneException.cs, TimeZoneInfo.AdjustmentRule.cs,
	TimeZoneInfo.cs, TimeZoneInfo.TransitionTime.cs: Bring back those
	inside NET_2_1 profile for Moonlight.


svn path=/trunk/mcs/; revision=138067
2009-07-16 17:30:34 +00:00
Marek Safar 00df7fd3e4 2009-06-10 Marek Safar <[email protected]>
* TimeZoneInfo.AdjustmentRule.cs, TimeZoneInfo.TransitionTime.cs,
	Funcs.cs, InvalidTimeZoneException.cs, Actions.cs, TimeZoneInfo.cs,
	TimeZoneNotFoundException.cs: Updated to 4.0 changes.


svn path=/trunk/mcs/; revision=135851
2009-06-10 14:24:10 +00:00
Sebastien Pouliot 99b7295699 2009-04-23 Sebastien Pouliot <[email protected]>
* TimezoneInfo.cs: TimeZoneDirectory property should not be public


svn path=/trunk/mcs/; revision=132509
2009-04-23 19:41:14 +00:00
Stephane Delcroix 9356acda24 2008-10-31 Stephane Delcroix <[email protected]>
* TimezoneInfo.cs: Drop overlapping rules, fix the 3 dst changes in
	Tunis in 1943

svn path=/trunk/mcs/; revision=117570
2008-10-31 16:02:40 +00:00
Stephane Delcroix 5ec4beebf3 2008-10-31 Stephane Delcroix <[email protected]>
* TimezoneInfo.cs: fix for Argentina

svn path=/trunk/mcs/; revision=117569
2008-10-31 16:02:37 +00:00
Stephane Delcroix 46bc38b1aa 2008-10-31 Stephane Delcroix <[email protected]>
* TimezoneInfo.cs: add indices for substrings.

svn path=/trunk/mcs/; revision=117563
2008-10-31 14:29:08 +00:00
Stephane Delcroix 3d8d9b51ce 2008-10-31 Stephane Delcroix <[email protected]>
* TimezoneInfo.cs: double the buffer size, as some tz files grew up
	recently and failed to load.

svn path=/trunk/mcs/; revision=117557
2008-10-31 12:09:58 +00:00
Jb Evain d398341ee5 2008-08-04 Jb Evain <[email protected]>
* TimeZoneInfo.cs: avoid using a SortedDictionary when not needed.


svn path=/trunk/mcs/; revision=109564
2008-08-04 13:51:24 +00:00
Jb Evain 5fff6309e6 make gendarme happy
svn path=/trunk/mcs/; revision=106591
2008-06-25 18:13:04 +00:00
Jb Evain 50f6adfff0 2008-06-25 Jb Evain <[email protected]>
* TimeZoneInfo.cs: remove the dependance to Mono.DataConverter
	which is only used to read big endian int32.

svn path=/trunk/mcs/; revision=106567
2008-06-25 16:20:02 +00:00
Stephane Delcroix 63d73d14a0 2008-05-21 Atsushi Enomoto <[email protected]>
* System.dll.sources :
	  added INotifyPropertyChanging stuff (new in 2.0 SP1).

svn path=/trunk/mcs/; revision=104072
2008-05-26 15:12:06 +00:00
Stephane Delcroix 1d67f58cf0 2008-05-26 Stephane Delcroix <[email protected]>
* TimezoneInfo.cs: nullity check in HasSameRules (). Fixes bnc #391011

svn path=/trunk/mcs/; revision=104052
2008-05-26 09:39:56 +00:00
Jb Evain ec60add9c2 2008-03-30 Jb Evain <[email protected]>
* TimeZoneInfo.cs: use generic collections instead of untyped
	collections.


svn path=/trunk/mcs/; revision=99331
2008-03-30 11:40:08 +00:00
Stephane Delcroix 9ee9c6d6b0 2007-12-20 Stephane Delcroix <[email protected]>
* TimeZoneInfo.cs: adapting length check to parse TZif2 files
	introduced by glibc 2.6.x.

svn path=/trunk/mcs/; revision=91701
2007-12-20 13:02:53 +00:00
Miguel de Icaza ad4ffa27f8 Make this build
svn path=/trunk/mcs/; revision=77258
2007-05-11 20:34:38 +00:00
Stephane Delcroix 3a941b58ef 2007-05-11 Stephane Delcroix <[email protected]>
* System/DateTimeOffset.cs:
	* System/InvalidTimeZoneException.cs:
	* System/TimeZoneInfo.AdjustmentRules.cs:
	* System/TimeZoneInfo.cs:
	* System/TimeZoneInfo.TransitionTime.cs
	* System/TimeZoneNotFoundException.cs: new TimeZoneInfo class

	* System.Core.dll.sources: Added the above files

	* Makefile: compile with -d:LIBC so TimeZoneInfo will look for libc
	defined timezones

svn path=/trunk/mcs/; revision=77257
2007-05-11 20:29:26 +00:00