snehlata08 commented on issue #8278:
URL: https://github.com/apache/superset/issues/8278#issuecomment-1088531817

   > change the core.py file under utils folder and change the 
json_int_dttm_ser function
   > 
   > def json_int_dttm_ser(obj): """json serializer that deals with dates""" 
val = base_json_conv(obj) if val is not None: return val if isinstance(obj, 
(datetime, pd.Timestamp)): # obj = datetime_to_epoch(obj) obj = 
obj.strftime("%m/%d/%Y") elif isinstance(obj, date):
   > 
   > ```
   >     obj = (obj - EPOCH.date()).total_seconds() * 1000
   >     obj = obj.strftime("%m/%d/%Y")
   > else:
   >     raise TypeError("Unserializable object {} of type {}".format(obj, 
type(obj)))
   > return obj
   > ```
   > 
   > this worked for me ..
   
   This didn't work for me. Can you please show the full code. Is there some 
mistake that I might have done. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to