Sha256: 16aabfce686c4ad9cdd082d6594264d326f8c6154e60487f347a5d1ee501f576
Contents?: true
Size: 302 Bytes
Versions: 1
Compression:
Stored size: 302 Bytes
Contents
module Ecircle module Helper extend self def date_format date tz = date.strftime('%z') matcher = /(.*)(00)/.match(tz) # We need to do that because ecircle won't accept +0200, just +02:00. "#{date.strftime('%Y-%m-%dT%H:%M:%S')}#{matcher[1]}:#{matcher[2]}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ecircle-0.0.6 | lib/ecircle/helper.rb |