diff options
| author | mkg0 <[email protected]> | 2020-08-18 14:51:44 +0200 |
|---|---|---|
| committer | mkg0 <[email protected]> | 2020-08-18 14:51:44 +0200 |
| commit | b08f11c347ae4a5a39ac145ea3620fe754bb9e0d (patch) | |
| tree | 09b5b20996dd653849e4ded6512bd538e3b1de6f /lib/address.js | |
| parent | 7da419dd8cd94ca8726d757b48645683fe25c0fc (diff) | |
| download | faker-b08f11c347ae4a5a39ac145ea3620fe754bb9e0d.tar.xz faker-b08f11c347ae4a5a39ac145ea3620fe754bb9e0d.zip | |
add time_zone
Diffstat (limited to 'lib/address.js')
| -rw-r--r-- | lib/address.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/address.js b/lib/address.js index 6ac5f9b9..125e3d50 100644 --- a/lib/address.js +++ b/lib/address.js @@ -373,6 +373,14 @@ function Address (faker) { return [randomCoord[0].toFixed(4), randomCoord[1].toFixed(4)]; } + /** + * Return a random time zone + * @method faker.address.timeZone + */ + this.timeZone = function() { + return faker.random.arrayElement(faker.definitions.address.time_zone); + } + return this; } |
