Skip to content

Commit

Permalink
Windows tz support
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainCorlay committed May 31, 2024
1 parent c2e7126 commit 9783a6e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ source:
url: https://github.com/HowardHinnant/date/archive/v{{ version }}.tar.gz
sha256: {{ sha256 }}
patches:
- use-conda-tzdb-on-all-platforms.patch
- use-conda-tzdb-on-all-platforms.patch
- windows-tz-support.patch

build:
number: 4
Expand Down
33 changes: 33 additions & 0 deletions recipe/windows-tz-support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From 3960fe59a8e97609c26a6535398e7c4fd7888847 Mon Sep 17 00:00:00 2001
From: Sylvain Corlay <[email protected]>
Date: Fri, 31 May 2024 11:48:38 +0200
Subject: [PATCH] Windows tz support

---
src/tz.cpp | 3 ---
1 file changed, 3 deletions(-)

diff --git a/src/tz.cpp b/src/tz.cpp
index 7337008..3a50429 100644
--- a/src/tz.cpp
+++ b/src/tz.cpp
@@ -571,8 +571,6 @@ parse_month(std::istream& in)
return static_cast<unsigned>(++m);
}

-#if !USE_OS_TZDB
-
#ifdef _WIN32

static
@@ -1790,7 +1788,6 @@ detail::zonelet::zonelet(const zonelet& i)
#endif
}

-#endif // !USE_OS_TZDB

// time_zone

--
2.37.1

0 comments on commit 9783a6e

Please sign in to comment.