elixirs / elixirs/faker

Feature request: Timezone

Open
#431 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
1.2k
Forks
261
Avg merge
2d 16h
Merged PRs (30d)
13

Description

Not sure if this totally makes sense for this project, though in an app which uses the [`DateTime`](https://hexdocs.pm/elixir/1.12/DateTime.html) module and where each user might have a different timezone set, would it make sense to allow Faker to generate random timezones to help running tests?

I guess the timezone would be represented as a string, with the UTC timezone as "Etc/UTC", and another timezone as "Europe/Copenhagen", for example.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing Faker's existing data-generator entry points and tests; the issue does not name a file or test to begin with. Check how Elixir's DateTime represents timezones and determine the expected generated string format, including "Etc/UTC" and "Europe/Copenhagen". Done means the feature can generate valid random timezone strings for test data.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.