CopyPastor

Detecting plagiarism made easy.

Score: 0.8474186722950269; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2024-09-02
by Devinder Jhinjer

Original Post

Original - Posted on 2024-09-02
by Devinder Jhinjer



            
Present in both answers; Present only in the new answer; Present only in the old answer;

This is working for me val cal = Calendar.getInstance() cal.setTimeZone(TimeZone.getTimeZone("UTC")); cal.setTimeInMillis(cal.getTimeInMillis()); return DateFormat.format(yyyy-MM-dd'T'HH:mm:ss, cal).toString();
This is working for me (code is in Kotlin) val cal = Calendar.getInstance() cal.setTimeZone(TimeZone.getTimeZone("UTC")); cal.setTimeInMillis(cal.getTimeInMillis()); return DateFormat.format(yyyy-MM-dd'T'HH:mm:ss, cal).toString();

        
Present in both answers; Present only in the new answer; Present only in the old answer;