← Guides

Birth time, time zones and historical offsets

The single most common cause of a "wrong" chart is the time zone, not the astrology. The API is strict about this on purpose - here is what it expects and how to get it right.

Updated

What the API accepts

Birth input fields
FieldFormatNotes
dateYYYY-MM-DDLocal calendar date of birth
timeHH:MM or HH:MM:SS, 24-hourLocal clock time; seconds optional
tz_offset_minutesinteger, -840..840Offset from UTC in force at that moment, east positive: IST is 330
lat, lngdecimal degrees-90..90 and -180..180

The API converts with UT = local time - tz_offset_minutes, rolling the date if needed. It does not look up time-zone names or apply daylight-saving rules - you send the offset that applied. The schema is strict, so a timezone: "Asia/Kolkata" field is rejected rather than silently ignored:

json
// time: "25:10"
{ "code": "VALIDATION_ERROR", "message": "hour must be 0..23, got 25" }

// an extra "timezone" key
{ "code": "VALIDATION_ERROR", "message": "Request validation failed",
  "details": [{ "keyword": "unrecognized_keys",
                "message": "Unrecognized key: \"timezone\"" }] }

Why the offset must be the historical one

Clock rules change. Daylight saving starts and stops on dates that differ by country and year, and many places have changed their standard offset outright. India is the classic trap for Vedic software: during the Second World War Indian clocks ran an hour ahead of IST (UTC+6:30), and some cities kept their own local times for years after independence. A birth certificate records the clock on the wall, so the offset has to be the one that clock was set to.

Get it from a time-zone database rather than a fixed table: resolve the birthplace to an IANA zone (from its coordinates), then ask for that zone's offset at the local birth date and time. Most languages ship this - Intl.DateTimeFormat in JavaScript, zoneinfo in Python. Do it on your side; the API deliberately accepts only the result.

What one hour changes

The same birth - 24 April 1973, 17:25, Mumbai - sent with tz_offset_minutes: 330 and then 390 (the wartime offset, applied by mistake):

Effect of a one-hour offset error
Offset 330 (correct)Offset 390 (one hour off)
Ascendant (charts/birth)Virgo 19°46′Virgo 5°32′
Moon nakshatraUttara Ashadha, pada 1Purva Ashadha, pada 4
First Vimshottari dasha (dasha/vimshottari)Sun, 5.94 years remainingVenus, 0.56 years remaining

The ascendant moved 14°, and because the Moon crossed into the previous nakshatra, the entire dasha sequence changed - every period date the API returns for this person would be wrong. Planet longitudes barely move in an hour; the ascendant, the houses and anything derived from the Moon's nakshatra move a lot.

Checklist

  • Store the birthplace's coordinates and IANA zone, not just a city name.
  • Resolve the offset for the local birth date and time, then send tz_offset_minutes.
  • If the birth time is approximate, say so in your UI: the ascendant and houses are the first things to become unreliable.
  • Unknown birth time? Many apps send noon. Sign- and nakshatra-level results usually survive that; ascendant-based ones do not.

Questions

Does the API accept a time-zone name such as Asia/Kolkata?
No. You send tz_offset_minutes: the offset in force at the moment of birth, east positive (IST is 330). The schema is strict, so a timezone field is rejected rather than silently ignored.
Does the API apply daylight saving time for me?
No. It converts with UT = local time - tz_offset_minutes and does not look up time-zone names or daylight-saving rules. You send the offset that applied at that place on that date.