GP Widget 24HR date input is converted to 12HR when service is ran

1986
2
10-26-2015 08:41 PM
ChrisPedrezuela
Occasional Contributor III

Hi guys,

Im hitting an error with my GP service widget because my script is based to look at 24hr time format value but when I check the messages in the job directory, the 24h format input (16:30:00) was converted to 12hr format (4:30:00 am). And its not even right cause I should be PM.

Regards,

Chris P

0 Kudos
2 Replies
ModyBuchbinder
Esri Regular Contributor

Hi

When you run as GP service you use the a different user (the ArcSOC owner). This user might have a different setting.

Have Fun

0 Kudos
ChrisPedrezuela
Occasional Contributor III

A colleague mentioned the GP service was giving off UTC date time format so I'll just create a function for converting UTC datetime input to local time.

0 Kudos