From b08f11c347ae4a5a39ac145ea3620fe754bb9e0d Mon Sep 17 00:00:00 2001 From: mkg0 Date: Tue, 18 Aug 2020 14:51:44 +0200 Subject: add time_zone --- lib/address.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/address.js') 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; } -- cgit v1.2.3