samhemelryk
|
50fcb1d835
|
lib MDL-19236 Added boilerplates and copyrights
|
2009-05-26 03:23:32 +00:00 |
|
mattc-catalyst
|
f476ae28eb
|
MDL-11538: lib/olson - bugfix, olson time-zone import doesn't deal with rule changes in the future
Author: Matt Clarkson <mattc@catalyst.net.nz>
|
2007-10-02 01:43:07 +00:00 |
|
stronk7
|
c0fe3453ef
|
Change rule to tzrule (reserved word)
|
2006-08-22 20:10:54 +00:00 |
|
martinlanghoff
|
3f8701ba14
|
Fixed handling of zones with no pre 1970 entries. Strange bug identified and fixed by Jon.
|
2005-05-22 09:15:52 +00:00 |
|
martinlanghoff
|
6227e876f6
|
olson_simple_rule_parser() now adds a reset rule to rulesets where the last rule has a defined TO field that marks where it ends. This tonge-twister means that Asia/Seoul should see the 1987 DST rule deactivated correctly in modern times. Discussed in http://moodle.org/mod/forum/discuss.php?d=23957
|
2005-05-18 07:53:45 +00:00 |
|
martinlanghoff
|
47121b3865
|
Now comments don't break Zone continuation, should fix reported issues with the Europe/Paris zone definition.
|
2005-05-02 10:26:26 +00:00 |
|
moodler
|
a1e93da26c
|
Improvements to timezone import interface
|
2005-04-10 09:31:58 +00:00 |
|
martinlanghoff
|
798065253e
|
Two minor fixes to Olson file parsing. olson_parse_at() now deals correctly with 'unsigned' AT entries. olson_simple_rule_parser() avoid a potential bug in minute-only SAVE entries.
|
2005-04-02 06:28:02 +00:00 |
|
defacer
|
733191ab83
|
Fixes fixes fixes fixes.
|
2005-03-23 04:00:46 +00:00 |
|
defacer
|
d37317b249
|
"from" is a reserved word in SQL, so change the field to "year"
|
2005-03-23 03:02:45 +00:00 |
|
defacer
|
62a73d8949
|
Continuing to move towards the "pre-calculated array in $SESSION" approach,
we output just ONE record for each year that something changes. This knocks
another ~3000 records from mdl_timezone.
|
2005-03-23 02:10:45 +00:00 |
|
defacer
|
aedcf71e33
|
Treat 'max' as 'only' in the "until" field. This removes ~1500 useless records.
|
2005-03-23 01:57:15 +00:00 |
|
defacer
|
deab60a42b
|
My latest working version, but we 'll need to roll back a bit as there
are more changes planned (from_timestamp bites the dust etc).
|
2005-03-23 01:24:22 +00:00 |
|
defacer
|
621d6c9c2b
|
Fixing a logic error... awgod.
|
2005-03-18 04:26:50 +00:00 |
|
defacer
|
7df4ed34be
|
Continuing to debug... we now have a SINGLE rule with from_timestamp = 0, guaranteed.
|
2005-03-18 04:02:59 +00:00 |
|
defacer
|
e0a3a2921a
|
Improvements and robustness, it now appears to be parsing a concatenation
of all relevant Olson files successfully.
|
2005-03-18 03:06:46 +00:00 |
|
defacer
|
4fe76cc138
|
Typo.
|
2005-03-16 03:46:17 +00:00 |
|
defacer
|
01b4c10789
|
olson_parse_on() now parses as agreed for the new timezone settings.
|
2005-03-16 03:41:56 +00:00 |
|
defacer
|
5e4e027fea
|
Pre-emptively put a lower bound of 1970 to years, instead of putting a lower
bound of 0 to the generated timestamps. Windows' < 1970 bug won't have it
otherwise.
|
2005-03-12 01:20:37 +00:00 |
|
martinlanghoff
|
eb4e67a27f
|
The olson parser is feature complete and ready for people to start playing with it. The entry point is the olson_todst($filename) function.
|
2005-03-07 07:39:27 +00:00 |
|
martinlanghoff
|
b87a5a23a5
|
Reorganized the rules and fixed a couple of bugs in the olson zone parser
|
2005-03-05 02:43:07 +00:00 |
|
martinlanghoff
|
af2309e366
|
We now postpone parsing of AT until we have the GMTOFFSET handy; some reorganization of the returned arrays, and starting to prepare the rationalized DST entries for Moodle DST table
|
2005-03-04 12:05:26 +00:00 |
|
martinlanghoff
|
720e6293ad
|
Olson parser now parses Zones and Rules
|
2005-03-04 10:59:29 +00:00 |
|
defacer
|
6ebb179eb2
|
"Reasonable assumptions" if a set or reset time is missing for some year.
|
2005-02-25 18:44:41 +00:00 |
|
defacer
|
83e1fc1407
|
Trying to get the Olson parser to produce correct output. That format is a nightmare...
|
2005-02-25 18:28:12 +00:00 |
|
martinlanghoff
|
8b0660a3c5
|
Initial implementation of a simple Olson database file format for DST rule parsing. Implements olson_simple_rule_parser().
|
2005-02-23 06:45:45 +00:00 |
|