Module: FeideeUtils::Record::Utils

Included in:
FeideeUtils::Record
Defined in:
lib/feidee_utils/record/utils.rb

Constant Summary collapse

AssumedTimezone =

Feidee assumes all users are in China and uses China Standard Time. It gets a local time, e.g. 2017-12-09 11:30 DST and treats it as 2017-12-09 11:30 CST, then convert it to UTC time 2017-12-09 03:30 UTC. Timestamp stored in database is the UTC time.

TZInfo::Timezone.get("Asia/Shanghai")