on 01-08-2016 7:22 AM
Hi PI Gurus,
I have created Email Alert in SAP PI single stack using CBMA using below link:
Emails for Alerts are working fine as expected.
But Issue I am facing here is incorrect timestamp is appearing in Alert Emails, we have used India Time Zone and have checked the same at OS level.
Example Below : Alert got generated at 8 AM today but time appearing is 02:30:35Z
______________________________________________________________________________________________
Hi,
Email Alert from SAP PI.
There is an alert created at 2016-01-08T02:30:35Z on SAP PI Production System.
__________________________________________________________________________________
Can some one please help me in resolving this issue?
Regards,
SV
Hello,
I see similar problem but no solution so far. Can someone from SAP help us on making sure it follows system time-stamp and not UTC/GMT? I am looking for CST time-stamp.
Thank you,
Siddhesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Siddhesh,
I think you need to log a call to SAP for this, i have tested the below small program, i think SAP has done similar thing in their code.
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
public class DateTest {
public static void main(String[] args) {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
System.out.println(dateFormat.format(new Date(new Date().getTime())));
}
}
2016-01-12T13:59:53Z
Regards,
Praveen.
Hi Sarvjeet
The suffix Z basically means that the time is specified in UTC/GMT time. Since the difference between India and UTC/GMT is 5.5 hours, the timestamp is correct.
Rgds
Eng Swee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm guessing you are using the variable $timestamp$ in your email template. Honestly, I don't think it's possible to change it since the template doesn't allow you to do any transformation etc. Maybe you can just add a few extra lines to indicate that it is UTC/GMT and mention the difference of time in the template.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.