* TP-43474 | Fixing time difference calculation issue (#193) * TP-43298 | Adding SLA messagae to incident channel below incident summary (#183) * TP-43298 | Resolving merge conflicts * TP-43298 | Updating serverity check condition * TP-43625 | Fixing user id check (#201) * TP-43625 | Fixing user id check * TP-43625 | Fixing user id check * Incident service v2 (#191) * TP-43339 | create-incident-v2 * TP-43339 | create-incident-v2 handler * TP-43339 | added logs and some optimiations * TP-43339 | added slack processor v2 * TP-43339 | create-incident-v2 integration with slack * TP-43339 | adding feature flag for create-incident-v2 * TP-43339 | removed redundant entity fetch * TP-43339 | Added SLA related changes to create-incident-v2 * TP-43339 | Posting incident summary to blazeGroup channel and improved logs * TP-43339 | Moving post summary method to the incident service file * TP-43339 | Removed socketModeClient usage from incident-service-v2, moved it to slack-service * TP-43339 | Updated env variable for create-incident-v2 --------- Co-authored-by: Sriram Bhargav <sriram.bhargav@navi.com>
12 lines
195 B
Go
12 lines
195 B
Go
package util
|
|
|
|
import "time"
|
|
|
|
func GetCurrentTime() int64 {
|
|
timeInIst, err := time.LoadLocation("Asia/Kolkata")
|
|
if err != nil {
|
|
return 0
|
|
}
|
|
return time.Now().In(timeInIst).UnixNano() / 1e6
|
|
}
|