Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oops: bad dow name: il Error with tzdata2024b #848

Open
zhigongl opened this issue Oct 9, 2024 · 1 comment
Open

oops: bad dow name: il Error with tzdata2024b #848

zhigongl opened this issue Oct 9, 2024 · 1 comment

Comments

@zhigongl
Copy link

zhigongl commented Oct 9, 2024

#include "date/tz.h"
#include

int
main()
{
using namespace date;
using namespace std::chrono;
auto t = make_zoned(current_zone(), system_clock::now());
std::cout << t << '\n';
}

	#STDOFF	2:05:08.9
	#STDOFF	8:05:43.2
	#STDOFF	7:36:41.7
	#STDOFF	-0:25:21.1
	#STDOFF	1:39:49.2
	#STDOFF	-0:36:44.68
	#STDOFF	-4:56:01.6

Rule Mexico 1931 only - April 30 0:00 1:00 D
Mexico 1931 1931 Jan/01 00:00:00 00:00:00
oops: bad dow name: il

@HowardHinnant
Copy link
Owner

This is a duplicate of #836.

There are a few options for fixing it:

  1. Edit your IANA tzdata/northamercia file: change "April" to "Apr" on one (non comment) line (line 2634), or
  2. Upgrade this library to the tip-of-master where parsing has been changed to accept "April", or
  3. Manually stick with 2024a, or
  4. Talk the IANA maintainer (@eggert) into releasing 2024c which has already changed "April" to "Apr", but not yet been released.

Any one or more of these options will fix your issue, and be forward compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants