We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be cool be to be able to specify the date format.
This small patch changes it to dd.mm.yyyy but of course it needs to be made configurable
diff --git a/crates/producer/src/dates.rs b/crates/producer/src/dates.rs index ed11325..2ce0ec7 100644 --- a/crates/producer/src/dates.rs +++ b/crates/producer/src/dates.rs @@ -25,7 +25,7 @@ fn pregenerate_dates() -> Vec<String> { month.to_string() }; - results.push(format!("{}{}", date, month)) + results.push(format!("{}.{}", date, month)) } } @@ -63,7 +63,7 @@ impl Producer for DateProducer { let next = self.inner.next().unwrap(); - let password = format!("{:04}{:04}", next, self.current).into_bytes(); + let password = format!("{:04}.{:04}", next, self.current).into_bytes(); debug!( "Sending {} from DateProducer", String::from_utf8_lossy(&password)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be cool be to be able to specify the date format.
This small patch changes it to dd.mm.yyyy but of course it needs to be made configurable
The text was updated successfully, but these errors were encountered: