Sha256: b0510e211ab90d701aa7bd05ab5ba4889bd9a4eb194b0eacd343f694b30d8882
Contents?: true
Size: 728 Bytes
Versions: 4
Compression:
Stored size: 728 Bytes
Contents
# typed: true # frozen_string_literal: true module Workato module Connector module Sdk module Dsl module Time def now ::Time.zone.now end def today ::Time.zone.today end end end end end end begin if ENV['TZ'].present? && ENV['TZ'] != 'UTC' warn "WARNING: TZ environment variable is set to '#{ENV['TZ']}'. Set TZ=UTC for consistency with Workato platform'" else ENV['TZ'] = 'UTC' end ::Time.zone = Workato::Connector::Sdk::DEFAULT_TIME_ZONE rescue TZInfo::DataSourceNotFound puts '' puts "tzinfo-data is not present. Please install gem 'tzinfo-data' by 'gem install tzinfo-data'" puts '' exit! end
Version data entries
4 entries across 4 versions & 1 rubygems