r4nkt
  • Introduction
  • Getting Started
  • Concepts
    • Overview
    • Achievements
    • Actions
    • Activities
    • Badges
    • Criteria
    • Criteria Conditions
    • Criteria Groups
    • Custom Data Reference
    • Games
    • Leaderboards
    • Players
    • Rewards
    • Scores
  • Cookbook
    • Criteria Conditions
    • Achievements
  • API
    • Overview
    • Authentication
    • Achievements
    • Actions
    • Activities
    • Criteria
    • Criteria Groups
    • Leaderboards
    • Players
    • Player Badges
    • Rewards
    • Scores
  • Webhooks
    • Overview
    • Getting Started
    • Events
  • PHP SDK
    • Overview
    • Getting Started
  • Laravel Package
    • Overview
    • Installation
    • Webhooks
Powered by GitBook
On this page
  • Description
  • Properties
  • Time Zone

Was this helpful?

  1. Concepts

Players

PreviousLeaderboardsNextRewards

Last updated 4 years ago

Was this helpful?

Description

Players in r4nkt are your end-users. They are the individuals that use your software or play your game.

Properties

Players have the following properties:

Name

Type

Default

custom_id

string

-

time_zone

string

UTC

custom_data

json

empty

Click for information about common properties.

Time Zone

This property represents your player's time zone. Any date/time-related calculations for your player will take this value into account.

If you have criteria that must be met between specified hours or on a specified day, then this is how you make sure that your individual players' actions are interpreted accurately for each individual player. When it's 5 PM for your players in New York, New York, US, it's not 5 PM in Sydney, Australia. In fact, it's not even the same day.

Setting this property correctly for each of your individual players solves this problem. Then, each of your players' actions are interpreted according to the criteria you have specified but in the context of their own time zone.

We use time zones from the .

Here is a list of some common or recognizable time zone values:

  • Europe/Copenhagen

  • Europe/London

  • America/New_York

  • America/Los_Angeles

  • Asia/Tokyo

  • Australia/Sydney

This property defaults to UTC.

You can for a complete listing of possible values.

look here
tz database
here