cryogenic22 commited on
Commit
d426697
·
verified ·
1 Parent(s): 1545df7

Update astro_core.py

Browse files
Files changed (1) hide show
  1. astro_core.py +6 -2
astro_core.py CHANGED
@@ -21,8 +21,12 @@ class ChartCalculator:
21
  Calculate birth chart positions
22
  Returns a dictionary of planetary positions and house cusps
23
  """
24
- # Convert to flatlib datetime
25
- date = Datetime(birth_datetime, timezone)
 
 
 
 
26
  pos = GeoPos(latitude, longitude)
27
 
28
  # Calculate chart
 
21
  Calculate birth chart positions
22
  Returns a dictionary of planetary positions and house cusps
23
  """
24
+ # Convert datetime to format required by flatlib
25
+ date_str = birth_datetime.strftime("%Y/%m/%d")
26
+ time_str = birth_datetime.strftime("%H:%M")
27
+
28
+ # Create flatlib datetime object
29
+ date = Datetime(date_str, time_str, timezone)
30
  pos = GeoPos(latitude, longitude)
31
 
32
  # Calculate chart