Skip to content

Commit

Permalink
Added most MS timezones
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbrtsn committed Jun 28, 2021
1 parent 48e2578 commit 60d999c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
1 change: 1 addition & 0 deletions Jmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ src := \
ez_libpthread.c \
ptrvec.c \
str.c \
tz_xref.c \
util.c \
vcalendar.c \

Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ src := \
ez_libpthread.c \
ptrvec.c \
str.c \
tz_xref.c \
util.c \
vcalendar.c \

Expand Down
24 changes: 2 additions & 22 deletions vcalendar.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "ez_libc.h"
#include "ptrvec.h"
#include "str.h"
#include "tz_xref.h"
#include "util.h"
#include "vcalendar.h"

Expand All @@ -42,27 +43,6 @@ static const char *fetchPerson(const char *src);
/*===========================================================================*/
/*=================== static data ===========================================*/
/*===========================================================================*/
/***************************************************
* Array of these structs provides the mapping between
* Microsoft TZID or "TZID display name" to a POSIX
* timezone. If you encounter a TZID not listed here,
* please add in the correct mapping.
*/
const static struct tz_xref {
const char *ms,
*posix;
} Ms2Posix[]= {
/* Make sure to supply a sufficiently unique string to match what immediately
* follows 'TZID=', or 'DTSTAMP' (no colon).
*/
{.ms= "\"(UTC-06:00) Central Time (US & Canada)\"", .posix= "America/Chicago" },
{.ms= "Central Standard Time:", .posix= "America/Chicago" },
{.ms= "Eastern Standard Time:", .posix= "America/New_York" },

/*--- >>> LOOK <<< Add other members here ---*/

{ /* Terminating member */ }
};

/* Instance the global static data */
struct Global G;
Expand Down Expand Up @@ -102,7 +82,7 @@ static struct {

} S= {
.version.major= 0,
.version.minor= 1,
.version.minor= 2,
.version.patch= 0
};

Expand Down

0 comments on commit 60d999c

Please sign in to comment.